Closed windkomo closed 8 years ago
oh, interesting!
since createPlayer
gets called for each and every player that's created, i think we can move that code somewhere like here. there's nothing truly wrong about where you placed it, but i think it'd be better to move it 💯
is there any way this could break anything? this seems like a minor update, but i'd like to be sure. any thoughts? cc @konsumer @qubird
thanks for finding this @windkomo
@brandly oh right, that seems like a good idea, I moved it !
:thumbsup:
No problem, glad to help, thanks a lot for the fast release 👍
Hello, I've encountered the
failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match the recipient window's origin
error referenced in #62.I seems that the YouTube iframe API randomly returns
http
orhttps
.If you execute
curl -s http://www.youtube.com/iframe_api | grep http
you can see the following code :if (!window['YTConfig']) {var YTConfig = {'host': 'http://www.youtube.com'};}
So I overrode the
host
option. Now it returns anhttps
URL everytime.Looking forward to feedback !