Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling setPosition immediately before play #2

Open
jeffcrouse opened this issue Feb 24, 2014 · 2 comments
Open

calling setPosition immediately before play #2

jeffcrouse opened this issue Feb 24, 2014 · 2 comments

Comments

@jeffcrouse
Copy link

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?

@philippelaulheret
Copy link

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 :

  1. The video still starts as expected from the beginning
  2. The 1 out of 30 bug happens or not (it might be a playing a video issue, not a setPosition issue)

@jeffcrouse
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants