gajus / gajus/react-youtube-player

http vs https?

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
40
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm getting the following error whenever I use `playbackState='playing'`, though the video is playing:
`Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin`

This [post](http://stackoverflow.com/questions/27573017/failed-to-execute-postmessage-on-domwindow-https-www-youtube-com-http) on SO suggests it's an issue of http vs https in the api call. How can I configure the call to make sure it is using the correct url?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the React component invokes the YouTube IFrame Player API when playbackState is set to 'playing'. Reproduce the postMessage origin error over HTTP and HTTPS, then verify that the API call uses a matching target origin and that the error no longer occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.