embedplayer icon indicating copy to clipboard operation
embedplayer copied to clipboard

Youtube origin parameter breaks postMessage

Open KazimirPodolski opened this issue 7 years ago • 2 comments

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?

KazimirPodolski avatar Jul 17 '18 07:07 KazimirPodolski

I'm currently on vacation, can only look at it in one and a half week. Does the demo page still work?

panzi avatar Jul 17 '18 12:07 panzi

Yes, demo is working. There is no origin in the demo.

KazimirPodolski avatar Jul 17 '18 12:07 KazimirPodolski