8
votes

There is this Flutter plugin for playing videos on iOS & Android (Video Plugin)

However, I also want to embed a video player into my web and desktop applications.

So I dont understand how Flutter is going this way of supporting plugins for different platforms. Because if you have a look at the video plugin it makes use of the AVPlayer on iOS and ExoPlayer on Android, but these are not then supported for web and desktop applications.

My Questions: Why isn't the community writing a Flutter plugin for videos which is independent of it's underlying platform? Or isn't it possible? Why do we have to rely so much on Android & iOS especially if Flutter will be more and more platform independent in the future? Isn't it possible to write the source code for making videos working on different platforms solely with the Dart language & Flutter framework?

Is there currently a way to embed a video player for web and desktop applications?

2

2 Answers

1
votes

You can try using WebView by flutter_webview_plugin package. It can take advantage of the built-in video decoders/players in any Operating Systems as they're pre-loaded as web content.

Edit: This is because not many Video Plugins are to be found for the Desktop and Web Platforms yet (At least by me)

0
votes

The video_player along with the video_player_web plugins work for web, android and ios. But I have not tested them on a desktop.