[#1147] Use a version of youtube we can trust, blow away the rest.

This commit is contained in:
Scott Downe 2012-06-14 11:16:01 -04:00
Родитель 4f8dfcfc30
Коммит 09c5d98f44
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,5 @@
// A global callback for youtube... that makes me angry
var onYouTubePlayerAPIReady = function() {
window.onYouTubePlayerAPIReady = function() {
onYouTubePlayerAPIReady.ready = true;
for ( var i = 0; i < onYouTubePlayerAPIReady.waiting.length; i++ ) {
@ -7,6 +7,8 @@ var onYouTubePlayerAPIReady = function() {
}
};
window.YT = null;
onYouTubePlayerAPIReady.waiting = [];
Popcorn.getScript( "http://www.youtube.com/player_api" );

Просмотреть файл

@ -4,6 +4,7 @@
<title>Popcorn YouTube Player</title>
<link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
<script src="../../test/qunit/qunit.js"></script>
<script src="http://s.ytimg.com/yt/jsbin/www-widgetapi-vflCAfh6H.js"></script>
<!--
do not move - this must be called immediately prior to popcorn.js.
-->