adrg / libvlc-go

Handcrafted Go bindings for libVLC and high-level media player interface
https://pkg.go.dev/github.com/adrg/libvlc-go/v3
MIT License
437 stars 50 forks source link

provide example for opengl #21

Closed sk8245 closed 4 years ago

sk8245 commented 5 years ago

hi, is it possible to add an example of how to use this with opengl in golang? I just wanna render a video (with sound) in an openGL window. thanks

adrg commented 4 years ago

@sk8245 Do you want to render video to a texture? If so, libVLC v3 does not support this. I know there's some work being done regarding this in v4, but v4 is in development. I will add bindings when there's a stable version of v4 as the API will likely change.

If you simply want to render a video in a window, I've added a GTK player example which renders video to a gtk.DrawingArea: https://github.com/adrg/libvlc-go/tree/master/v3/examples/gtk3_player

adrg commented 4 years ago

Closing this issue as it has been addressed. Please reopen if the provided solution is not suitable for your use case.