Closed PetroFrolov closed 11 years ago
I've tested in Chrome v26 && FF v21 under Ubuntu
I belief it is related to #569 and #522 due to a unclean implementation of the myPlayer.src()
/load within the API
Do you think you could set up an example of this on http://jsbin.com?
Done )
2013/6/27 Steve Heffernan notifications@github.com
Do you think you could set up an example of this on http://jsbin.com?
— Reply to this email directly or view it on GitHubhttps://github.com/videojs/video.js/issues/573#issuecomment-20087327 .
С уважением, Фролов Петр
If you posted a link to it, it didn't come through in the comment.
I'm having trouble tracking everything. Could you remove anything from that example that's not needed to reproduce the bug?
What browser have you used? what do you think about chatting in skype? petro.frolov
I think you can edit http://jsbin.com/owexod/2/ There is correct script for Chrome. If you unkomment marked lines you'll see the bug.
Looking at that jsbin, I think this is the minimal example of the broken behavior.
http://jsbin.com/owexod/12/edit
If so, it's definitely the same issue as #620
Hi, my case like your example, but... in my case bug starts after source changed.
http://jsbin.com/owexod/14/edit (you need uncomment some code to see it)
Hmm, I don't think changing the source has anything to do with the observed behavior. Notice that the problem exists even if you don't change the source at all.
See: http://jsbin.com/owexod/16/edit (no uncommenting necessary :) )
The problem is calling _p.pause() from inside the play event handler (or, conversely, "play" from inside the "pause" event handler), as the default action is always getting called, resulting in an endless cycle of play/pause events.
You're right.
Hi! What's up? Why did you revert commit?
Because the pull request was made against stable instead of master, and I didn't catch that before pulling it in. The change still exists in the master branch and will go out with the next release if it didn't go out with the last.
Thank you, I've read #620 and I've understood all about default action. But .. the problem still present, I've tested 4.0 and 4.1 CDN-versions. I'll wait for new version.
Hi! I've founded that if I change source and call player.pause() videojs infinitely call trigger(player, 'pause') / trigger(player_, 'play'); Also event ended doesn't work of this bug.
Please, take a look in next code:
<html><head> <link href="http://vjs.zencdn.net/4.0/video-js.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/4.0/video.js"></script>
</head><body>
<video id="video" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360"> <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4'/> <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' > </video>
<script type="text/javascript">
</script>
</body></html>
Use appropriate video to change the source.
P.S. v.3.2 doesn't have that bug