Hi,
I have been trying to implement a feed of Videos like the one fond in TikTok for a while now.
I'm trying to achieve the above with the best possible performance without Jank and lags.
I have tried using a vertical PageView builder with each page initializing a network video controller (Video_Player package).
Also tried using a listView builder as well. Both were not optimal and I still experienced lags and most importantly crashes when certain number of videos were loaded in the app. (Let's say a user has been scrolling through videos for a minute or so).
Recently I have been trying to initialize my video in separate isolate. This has proven very hard to do. The idea is to have all if my videos initialized on a separate isolate. This is difficult however since video require the UI thread if I'm right.
Has anyone ever achieved such task ? An optimal feed of videos that a user can scroll through ?
Can I please get some insights on what can I do to implement it? All help is very much appreciated!
Best,
Mike
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/1d8faa30-2231-43f5-8f79-abc0c82189eco%40googlegroups.com.
How many in the list?
Are they all supposed to be playing?
Cheers,
Andy
On Jul 28, 2020, 4:59 PM +0100, Michel Rahme <michel...@gmail.com>, wrote:
--Hi,
I have been trying to implement a feed of Videos like the one fond in TikTok for a while now.
I'm trying to achieve the above with the best possible performance without Jank and lags.
I have tried using a vertical PageView builder with each page initializing a network video controller (Video_Player package).
Also tried using a listView builder as well. Both were not optimal and I still experienced lags and most importantly crashes when certain number of videos were loaded in the app. (Let's say a user has been scrolling through videos for a minute or so).Recently I have been trying to initialize my video in separate isolate. This has proven very hard to do. The idea is to have all if my videos initialized on a separate isolate. This is difficult however since video require the UI thread if I'm right.
Has anyone ever achieved such task ? An optimal feed of videos that a user can scroll through ?
Can I please get some insights on what can I do to implement it? All help is very much appreciated!
Best,
Mike
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/cdb33710-9cb9-4802-9a81-ff3ba22cb8dao%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/a2c2c808-f957-473b-bf6a-41a5aad44eaen%40googlegroups.com.