mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved adding of listeners to a function, to be done after DOMContentLoadedEvent
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -870,6 +870,7 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onYouTubeIframeAPIReady: function() {
|
onYouTubeIframeAPIReady: function() {
|
||||||
|
try {
|
||||||
Player.player = new YT.Player('player', {
|
Player.player = new YT.Player('player', {
|
||||||
videoId: video_id,
|
videoId: video_id,
|
||||||
playerVars: { rel:"0", autoplay: 1, wmode:"transparent", controls: "0" , fs: "0", iv_load_policy: "3", theme:"light", color:"white", showinfo: 0},
|
playerVars: { rel:"0", autoplay: 1, wmode:"transparent", controls: "0" , fs: "0", iv_load_policy: "3", theme:"light", color:"white", showinfo: 0},
|
||||||
@@ -879,6 +880,9 @@ var Player = {
|
|||||||
'onError': Player.errorHandler
|
'onError': Player.errorHandler
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} catch(e) {
|
||||||
|
console.log("YouTube not quite loaded yet");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
createFireplacePlayer: function() {
|
createFireplacePlayer: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user