flet icon indicating copy to clipboard operation
flet copied to clipboard

Add video support

Open danielgafni opened this issue 3 years ago • 3 comments

Might be related to #235 #237

danielgafni avatar Aug 31 '22 18:08 danielgafni

+1 very important for developping some multimedia app

tcye avatar Sep 01 '22 05:09 tcye

  • 1 I would love to use this for some simple media apps.

pastorhudson avatar Sep 01 '22 14:09 pastorhudson

It looks like the video is currently supported on web, iOS and Android platforms only: https://pub.dev/packages/video_player

FeodorFitsner avatar Sep 01 '22 15:09 FeodorFitsner

After searching all the available Flutter video players, the best on I found is https://pub.dev/packages/flutter_meedu_videoplayer which is compatible on all platforms except desktop MacOS. It's fairly easy to call and use, and covers most demands, except playing YouTube. Doesn't look too difficult to implement an adapter... There are a bunch of other vid player addons, but they're compatible with less platforms.

Skquark avatar Nov 22 '22 13:11 Skquark

There is also https://pub.dev/packages/video_player_macos which is based on the official iOS plugin.

cbenhagen avatar Dec 02 '22 09:12 cbenhagen

yes really need for video player or iframe in flet officially

CYCNO avatar Jan 21 '23 10:01 CYCNO

After searching all the available Flutter video players, the best on I found is https://pub.dev/packages/flutter_meedu_videoplayer which is compatible on all platforms except desktop MacOS. It's fairly easy to call and use, and covers most demands, except playing YouTube. Doesn't look too difficult to implement an adapter... There are a bunch of other vid player addons, but they're compatible with less platforms.

In order to get the code to run on some platforms, the plugin needs to be 120MB in size: https://github.com/zezo357/flutter_meedu_videoplayer/issues/30, and I suspect that this is will be a common problem. I'm wondering if webview #432 may solve this problem, as once you have that, then JS solutions for playing video files will be fully cross-platform and tiny in size, and flet can have a convenience sub-class of webview with the js already included.

adampiskorski avatar Feb 06 '23 02:02 adampiskorski

I'm wondering if webview #432 may solve this problem, as once you have that, then JS solutions for playing video files will be fully cross-platform and tiny in size, and flet can have a convenience sub-class of webview with the js already included.

A followup regarding the webview solution, if flet implements https://pub.dev/packages/flutter_widget_from_html_core (all platforms supported) to resolve #432, then you can implement the fwfh_chewie extension of it for video, and even though it only lists android and ios as supported, it clearly works on web: https://demo.fwfh.dev/#/video, so I suspect it will work wherever the core package does, as it doesn't say anything otherwise.

adampiskorski avatar Feb 15 '23 13:02 adampiskorski

And what about desktop?

ndonkoHenri avatar Feb 15 '23 16:02 ndonkoHenri

And what about desktop?

flutter_widget_from_html_core supports MacOS, Windows and Linux, so I suspect that the video plugin does as well, although I'm not sure.

adampiskorski avatar Feb 15 '23 20:02 adampiskorski

+1 building a kiosk media app, with a need for background video behind text

forddata avatar Apr 02 '23 03:04 forddata

Currently, is there just one method of using OpenCV for exhibiting videos in flets(https://github.com/ipritom/flet-demo.git)? Is anyone working on developing relevant functionalities? If there is, I'd be interested in offering my assistance.

hokaso avatar May 20 '23 10:05 hokaso

A new Flutter library for playing video on all platforms: https://github.com/wang-bin/fvp

FeodorFitsner avatar Jun 27 '23 16:06 FeodorFitsner

Any progress? Still waiting for this function

tcye avatar Aug 11 '23 07:08 tcye

Need https://pub.dev/packages/video_player_web_hls for flut

kumaraguru1735 avatar Dec 19 '23 19:12 kumaraguru1735

After searching all the available Flutter video players, the best on I found is https://pub.dev/packages/flutter_meedu_videoplayer which is compatible on all platforms except desktop MacOS. It's fairly easy to call and use, and covers most demands, except playing YouTube. Doesn't look too difficult to implement an adapter... There are a bunch of other vid player addons, but they're compatible with less platforms.

In order to get the code to run on some platforms, the plugin needs to be 120MB in size: zezo357/flutter_meedu_videoplayer#30, and I suspect that this is will be a common problem. I'm wondering if webview #432 may solve this problem, as once you have that, then JS solutions for playing video files will be fully cross-platform and tiny in size, and flet can have a convenience sub-class of webview with the js already included.

The meedu player has been discontinued and has been replaced by https://pub.dev/packages/media_kit - which could be a better option?

chrsbats avatar Jan 21 '24 12:01 chrsbats

media_kit looks great! All platforms! Video! Audio! To good to be true, huh. 🥹

FeodorFitsner avatar Jan 21 '24 19:01 FeodorFitsner

Expecting soon...

kumaraguru1735 avatar Jan 25 '24 15:01 kumaraguru1735