Stani-s / videna

A video decoding and playback library for flutter on Windows and Linux.
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Mobile support #1

Open quochuynh67 opened 1 year ago

quochuynh67 commented 1 year ago

Could you support mobile version?

Thank you so much, hope you reply soon

Stani-s commented 1 year ago

I'm currently playing around with ways to build ffmpeg on mobile platforms. I don't want to give you a date yet but I will let you know soon.

quochuynh67 commented 1 year ago

Hi @Stani-s Could you show me how about multiple videos? I want to add list of video and the same Slider, when drag the slider it will seek to exact frame

Thank you so much hope you reply

Stani-s commented 1 year ago

Hi!

To display multiple videos you would create and initialize a list with Video widgets. import 'package:videna/video'; In the state of your widget declare the video list: List<Video> videos; In an initState method you would initialize it: for (int i = 0; i < 10; i++) { videos.add(Video()); // you could also open the video at this point }

You then add the video widgets to a ListView widget or similar. Here's a useful example: https://medium.com/@AnInsightfulTechie/flutter-displaying-dynamic-contents-using-listview-builder-f2cedb1a19fb

Let me know if that helps.

Also, android support will be added in a day or so. iOS will come later.