ardera / omxplayer_video_player

A package that implements video_player_platform_interface using omxplayer and platform views.
MIT License
8 stars 0 forks source link

How do i add omxplayer to my widget tree #1

Open premingiet opened 4 years ago

premingiet commented 4 years ago

There is no example or documentation on adding omxplayer to widget tree of my app. could you please help ?

ardera commented 4 years ago

omxplayer_video_player is just a platform interface for the official video_player plugin.

You use it as follows:

  1. Invoke OmxplayerVideoPlayer.useAsImplementation(); in your App's main function
  2. Use video_player to playback your videos, or optionally some higher level players. (I don't recommend Chewie though, it has terrible performance and does some things that aren't really compatible with omxplayer_video_player)