flutter_vlc_player
flutter_vlc_player copied to clipboard
Why don't use Texture widget to render video output?
- Texture widget can be used to render backend texture obtained from the texture registry.
- https://medium.com/@german_saprykin/opengl-with-texture-widget-f919743d25d9
- flutter_vlc_player obtains texture from the registry and passes it to VLC but does not use Texture widget to display it.
- Currently, flutter_vlc_player uses PlatformView to display the native view which comes with performance trade-offs, bugs, and limitations.
- Suggestion: Use Texture widget to render texture directly into Flutter engine instead of using PlatformView.
Hi @XuanTung95, I think it could be a nice idea to try, at the time this plugin was created I don't think that there was a Texture widget. So if you have time - feel free to try it and let us know how it goes.
@illia-romanenko I created a PR for this feature. Please review it if you have time. https://github.com/solid-software/flutter_vlc_player/pull/390