flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Why don't use Texture widget to render video output?

Open XuanTung95 opened this issue 2 years ago • 2 comments

  • 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.

XuanTung95 avatar Jan 08 '23 15:01 XuanTung95

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 avatar Jan 09 '23 17:01 illia-romanenko

@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

XuanTung95 avatar Jan 10 '23 03:01 XuanTung95