menismu/popcorn-js

Issue with pause event on Youtube HTML player

Opened this issue · 0 comments

Issue reported: mozilla#458
Reported by: @syl22-00

@syl22-00
Contributor
syl22-00 commented on 23 Jul 2015
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.

This was referenced on 23 Jul 2015
Closed
YouTube videos in Amara editor and embedder not playable in Google Chrome pculture/unisubs#2296
Merged
Hack for youtube issue on Chrome pculture/unisubs#2298
Open
Workaround for missing pause event in Youtube on Chrome mozilla#460
@syl22-00
Contributor
syl22-00 commented on 27 Jul 2015
Workaround was submitted in pull request mozilla#460

@syl22-00
Contributor
syl22-00 commented on 27 Jul 2015
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
Contributor
syl22-00 commented on 4 Aug 2015
This seems to have been fixed on Youtube's side, the youtube demo now works well again.