Skip to content

Youtube origin parameter breaks postMessage #6

Description

@KazimirPodolski

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions