embedplayer
embedplayer copied to clipboard
Youtube origin parameter breaks postMessage
Here https://developers.google.com/youtube/player_parameters#origin it says that origin should be present if enablejsapi is set.
I've tried to set my origin to the video url, but embedplayer silently stops working - events like timeupdate does not trigger.
I've tried to set origin from src to data.detail.origin naively, but then I get infinite errors
The target origin provided ('https://www.youtube.com') does not match the recipient window's origin (<my actual origin>)
Is it a problem in embedplayer or am I using it wrong?
I'm currently on vacation, can only look at it in one and a half week. Does the demo page still work?
Yes, demo is working. There is no origin in the demo.