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/iFrame API Issue #1

Closed
kienthoang opened this issue Apr 17, 2013 · 3 comments
Closed

Youtube/iFrame API Issue #1

kienthoang opened this issue Apr 17, 2013 · 3 comments
Labels

Comments

@kienthoang
Copy link

I've been getting this error on the console. I tried to google it and it seemed to have something to do with either Youtube or iFrame API:

Unable to post message to http://www.youtube.com. Recipient has origin http://localhost:3000.
www-widgetapi-vflEwv9hv.js:21
Xa www-widgetapi-vflEwv9hv.js:21
W www-widgetapi-vflEwv9hv.js:20
m.addEventListener www-widgetapi-vflEwv9hv.js:20
T www-widgetapi-vflEwv9hv.js:18
Y www-widgetapi-vflEwv9hv.js:22
videojs.Youtube.loadYoutube vjs.youtube.js:33
window.onYouTubeIframeAPIReady vjs.youtube.js:34
(anonymous function) www-widgetapi-vflEwv9hv.js:30
(anonymous function) www-widgetapi-vflEwv9hv.js:31
XMLHttpRequest cannot load http://r3---sn-gjo-2iae.c.youtube.com/videoplayback?burst=40&algorithm=thro…y8DuulTcwc7ci4zPWrKiw&ptchn=joblomovienetwork&pltype=content&range=0-65535. Origin http://www.youtube.com is not allowed by Access-Control-Allow-Origin. cdnoqCViqUo:1
["Video Error", Object]
video.js:19
XMLHttpRequest cannot load http://r3---sn-gjo-2iae.c.youtube.com/videoplayback?burst=40&algorithm=thro…y8DuulTcwc7ci4zPWrKiw&ptchn=joblomovienetwork&pltype=content&range=0-65535. Origin http://www.youtube.com is not allowed by Access-Control-Allow-Origin. cdnoqCViqUo:1

@eXon
Copy link
Collaborator

eXon commented Apr 18, 2013

It looks like YouTube has some problem with some embeded videos. I had a video of Lindsey Stirling all month and since this morning, it throws the same error.

Can you try with this one and tell me if it works or not for you? For me this one work:
http://www.youtube.com/watch?v=ebO5jK5NKXw

I suspect it is a problem from YouTube servers

@eXon
Copy link
Collaborator

eXon commented Apr 21, 2013

Are you still experiencing the problem?

@kienthoang
Copy link
Author

Yeah it's working fine now. But I'm experiencing another issue. Will post it as a separate topic.

@eXon eXon closed this as completed Apr 26, 2013
eXon pushed a commit that referenced this issue Mar 10, 2015
gkatsev pushed a commit that referenced this issue Jul 7, 2016
* Check for videojs.getComponent to ensure the tech can run
Trigger the 'loadstart' event in states -1 and YT.PlayerState.ENDED to show the poster
Removed extraneous play() in src (since it's called in setSrc anyway)
Added cueing/loading of videos when the source is set
Allow non-native controls on non-stock Android browsers and stock Android 5+ browsers

* Added vjs-tech class to the tech-created div
Removed loadstart trigger when video is ended
Return the url as a string from currentSrc()

* Added missing required tech functions (#1)

* Added the seeking() function to the YouTube tech

* Added more missing tech functions

* Use IS_IOS instead of IS_IPHONE for determining if the device is mobile

* Use the YT.ready event instead of window.onYouTubeIframeAPIReady since certain videojs plugins (such as IMA) conflict with this

* Removed check for old version of videojs, added setLoop function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants