Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube origin parameter breaks postMessage #6

Open
KazimirPodolski opened this issue Jul 17, 2018 · 2 comments
Open

Youtube origin parameter breaks postMessage #6

KazimirPodolski opened this issue Jul 17, 2018 · 2 comments

Comments

@KazimirPodolski
Copy link

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?

@panzi
Copy link
Owner

panzi commented Jul 17, 2018 via email

@KazimirPodolski
Copy link
Author

KazimirPodolski commented Jul 17, 2018

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

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

No branches or pull requests

2 participants