video_player_web_hls icon indicating copy to clipboard operation
video_player_web_hls copied to clipboard

VideoPlayerController loses state when current hls segment has not downloaded yet

Open aramisromero89 opened this issue 3 years ago • 8 comments

Sometimes, especially on slow connections(manipulated from network panel on developer tools), the VideoPlayerController loses its state, the video plays, but its state cannot be controlled. If I use VideoProgressIndicator it falls into busy mode and if I try to pause and play the video then it starts from beginning. If I use Chewie it shows a white warning icon. The console output shows ''No further diagnostic information can be determined or provided"

aramisromero89 avatar Sep 04 '21 03:09 aramisromero89

try opening a issue here @aramisromero89 https://github.com/flutter/flutter

balvinderz avatar Sep 04 '21 12:09 balvinderz

try opening a issue here @aramisromero89 https://github.com/flutter/flutter

But I think it is related to the plugin implementation with hls.js, maybe it is not setting the controller state correctly after some events

aramisromero89 avatar Sep 04 '21 12:09 aramisromero89

Can you share a video on how to reproduce this issue

balvinderz avatar Sep 04 '21 13:09 balvinderz

Here is the video

https://user-images.githubusercontent.com/63468980/132098143-db93a9a9-f37e-41b2-a1c9-4748a0a5ae9d.mp4

This happens even with the simplest video_player example. The error occurs when the position arrives to a fragment that is not yet downloaded.

aramisromero89 avatar Sep 04 '21 14:09 aramisromero89

Is there any workaround for this issue, also chewie controller shows a warning icon after the player loses its state

aramisromero89 avatar Nov 19 '21 18:11 aramisromero89

Noticing this issue as well for our web application. Pretty much only happens with slow connections.

bgparkerdev avatar Dec 02 '21 21:12 bgparkerdev

Did you guys find any solution for this?

balvinderz avatar Oct 05 '22 15:10 balvinderz

Any updates on this?

sandeshgyw avatar Jun 28 '23 11:06 sandeshgyw