Hi Chris
I am really interested to play videos using Gio and Libvlc/libmpv as well , Libvlc ’s 4.0 api introduced libvlc_video_set_output_callbacks, which seems more flexible and integratable to 3rd party GUIs , Do you think this new api will make it is easier to use with Gio ?
Thanks
On Thu, Nov 30, 2023 at 3:27 AM Ray Hazar <yellow.roof@yahoo.com> wrote:
>
> Hi Chris
>
> I am really interested to play videos using Gio and Libvlc/libmpv as well , Libvlc ’s 4.0 api introduced libvlc_video_set_output_callbacks, which seems more flexible and integratable to 3rd party GUIs , Do you think this new api will make it is easier to use with Gio ?
It seems like libvlc needs raw access to the rendering context in
order to use this API, which is still challenging within a
conventional Gio window. I believe you could make this work by using
Gio custom rendering so that you create the GL context yourself and
share it between VLC and Gio. See gioui.org/example/opengl for a
demonstration of that technique. It would require solving some OpenGL
platform availability issues though, since Windows doesn't guarantee
the presence of an OpenGL newer than 1.1. You can either rely upon
windows GPU vendors to ship modern OpenGL implementations (they
frequently do) or you can use something like ANGLE to provide an
OpenGL API on top of the native graphics for the platform.
Cheers,
Chris