зеркало из https://github.com/mozilla/popcorn-js.git
[#1147] Use a version of youtube we can trust, blow away the rest.
This commit is contained in:
Родитель
4f8dfcfc30
Коммит
09c5d98f44
|
@ -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.
|
||||
-->
|
||||
|
|
Загрузка…
Ссылка в новой задаче