You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling setPosition immediately before play causes intermittent playback problems.
My situation: I have a playlist-type application that plays back one video after another. When one video ends, I increment to the next video, set position to 0 on the new video, and then play the new video. Maybe 1 time out of 30, the new video just fails to start playing.
My best (not great) guess is that, since the calls are asynchronous, the setPosition call ends up happening after the play... But this doesn't totally make sense because setPosition shouldn't pause or stop the video, right?
The text was updated successfully, but these errors were encountered:
I don't think there's a need to set the position to zero when playing a new video. Could you try, without setting the position after loading the video, and see if :
The video still starts as expected from the beginning
The 1 out of 30 bug happens or not (it might be a playing a video issue, not a setPosition issue)
Yes, sorry -- forgot to add: you are correct that it is not necessary. When I remove it, the bug no longer happens and the video does start from the beginning.
Calling setPosition immediately before play causes intermittent playback problems.
My situation: I have a playlist-type application that plays back one video after another. When one video ends, I increment to the next video, set position to 0 on the new video, and then play the new video. Maybe 1 time out of 30, the new video just fails to start playing.
My best (not great) guess is that, since the calls are asynchronous, the setPosition call ends up happening after the play... But this doesn't totally make sense because setPosition shouldn't pause or stop the video, right?
The text was updated successfully, but these errors were encountered: