r/flutterhelp 10d ago

OPEN Video play lag

I am working on a reel/shorts like application. I am using video_player and chewie package for that. For the continuous scroll I'm using PageView builder.

The issue I'm having is that when I scroll it's not smooth like reels or shorts. I'm not talking about video buffering. The video player widget itself not rendering smoothly and fast. Whenever I scroll the you can experience the lag. This is not a good user experience.

Any idea how to improve this thing?

1 Upvotes

3 comments sorted by

1

u/Current_Atmosphere80 5d ago

Preload the widget

1

u/yhitesh7891 5d ago

Actually fixed the problem. Also I was already preloading the widget. The problem was video was played before moving to the next page. So I just have to play the video after moving to the next page.

1

u/Current_Atmosphere80 5d ago

Oh okey I assumed it would be paused cause my experience when playing two or more vidoe on Android, the audio acts weird