Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Issue with pause event on Youtube HTML player #458

Open
syl22-00 opened this issue Jul 23, 2015 · 3 comments
Open

Issue with pause event on Youtube HTML player #458

syl22-00 opened this issue Jul 23, 2015 · 3 comments

Comments

@syl22-00
Copy link
Contributor

It seems that, starting very recently, there is an issue with the HTML Youtube player that does not fire the pause event on Chrome. So after calling player.pauseVideo();, it is waiting indefinitely for the pause event in order to call onFirstPause (addYouTubeEvent( "pause", onFirstPause );).

This is not happening on Firefox, where the pause event is fired and dispatched correctly.

For now, I hacked by changing addYouTubeEvent( "pause", onFirstPause ); into a timeout after the call to player.pauseVideo(); to call onFirstPause.

Will make a pull request if that works for a while... and if Google does not fix the issue soon.

@syl22-00
Copy link
Contributor Author

Workaround was submitted in pull request #460

@syl22-00
Copy link
Contributor Author

This can be tested easily for instance with the YouTube demo, which is currently also broken on the website because the compiled popcorn it uses does not include other recent updates for youtube broken API.

@syl22-00
Copy link
Contributor Author

syl22-00 commented Aug 4, 2015

This seems to have been fixed on Youtube's side, the youtube demo now works well again.

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

No branches or pull requests

1 participant