Permalink
Browse files

Update Youtube player API to v3.

Thanks to Alex Halovanic for this change, allows playback for those
videos which attempt to play advertisements first.

Fixes #10463.
  • Loading branch information...
1 parent 2ce3690 commit 5fb541e4556ba2bb9888238a47d5fcf522e1713a Robert McNamara committed Mar 16, 2012
@@ -31,7 +31,7 @@
wmode: 'opaque'
};
var atts = { id: "myytplayer" };
- swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer",
+ swfobject.embedSWF("http://www.youtube.com/apiplayer?version=3&enablejsapi=1&playerapiid=ytplayer",
"myth_player", window.innerWidth, window.innerHeight, "8", null, null, params, atts);
function onYouTubePlayerReady(playerId) {

0 comments on commit 5fb541e

Please sign in to comment.