0

I wanted to share a challenge I've encountered while working with the video preloading functionality in Flutter, using the video player dependency.

I've been trying to implement a smooth video preloading mechanism in my Flutter app. My approach involves initializing the first video and playing it, and then asynchronously initializing the second video in the background. However, I've noticed that even with this approach, there's still a noticeable delay during the initialization process.

To make things more complex, I've also attempted to cache these videos to improve loading times. Strangely, when I attempt to load and cache multiple videos together, the app tends to crash or experience significant lag.

Just to give you some insight into my tech stack, I've explored various solutions like cheiwe, better player, and preload_page_view to help with the preloading process. My code structure involves using a PageView.builder and integrating Firebase for video connectivity.

I'm reaching out to to see if anyone has insights into optimizing video preloading, caching, and overall performance. If you've come across any helpful resources, design patterns, or tips, I'd greatly appreciate your input.

James Z
  • 12,209
  • 10
  • 24
  • 44
  • Welcome, please read [ask]. At the moment it is unclear what you're asking. Stack Overflow is not a code-writing service and not a resource recommendation site. Please clarify your question to be about one specific problem, including what you've tried and any errors you've run into. – LW001 Aug 26 '23 at 09:10
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 29 '23 at 08:44

0 Answers0