mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved hashlink test in embed
This commit is contained in:
@@ -76,14 +76,15 @@ function receiveMessage(event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(hash.length >= 3 && hash[2] == "autoplay"){
|
||||||
|
autoplay = true;
|
||||||
|
Helper.css("#player", "visibility", "hidden");
|
||||||
|
} else {
|
||||||
|
paused = true;
|
||||||
|
}
|
||||||
|
|
||||||
window.addEventListener("message", receiveMessage, false);
|
window.addEventListener("message", receiveMessage, false);
|
||||||
window.addEventListener("DOMContentLoaded", function() {
|
window.addEventListener("DOMContentLoaded", function() {
|
||||||
if(hash.length >= 3 && hash[2] == "autoplay"){
|
|
||||||
autoplay = true;
|
|
||||||
Helper.css("#player", "visibility", "hidden");
|
|
||||||
} else {
|
|
||||||
paused = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(hash.indexOf("videoonly") > -1) {
|
if(hash.indexOf("videoonly") > -1) {
|
||||||
Helper.addClass("#wrapper", "hide");
|
Helper.addClass("#wrapper", "hide");
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
now_playing_listener: function(obj) {
|
now_playing_listener: function(obj) {
|
||||||
console.log(offline && (video_id == "" || video_id == undefined) && !client);
|
|
||||||
if(obj.np != undefined) {
|
if(obj.np != undefined) {
|
||||||
if(offline && (video_id == "" || video_id == undefined) && !client){
|
if(offline && (video_id == "" || video_id == undefined) && !client){
|
||||||
video_id = obj.np[0].id;
|
video_id = obj.np[0].id;
|
||||||
@@ -41,7 +40,6 @@ var Player = {
|
|||||||
Player.getTitle(song_title, viewers);
|
Player.getTitle(song_title, viewers);
|
||||||
Player.loadVideoById(Player.np.id, duration, Player.np.start, Player.np.end);
|
Player.loadVideoById(Player.np.id, duration, Player.np.start, Player.np.end);
|
||||||
} else {
|
} else {
|
||||||
console.log("here");
|
|
||||||
video_id = obj.np[0].id;
|
video_id = obj.np[0].id;
|
||||||
Player.np = obj.np[0];
|
Player.np = obj.np[0];
|
||||||
Player.np.start = obj.np[0].start;
|
Player.np.start = obj.np[0].start;
|
||||||
@@ -410,7 +408,6 @@ var Player = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
cueVideoById: function(id, this_duration, start, end){
|
cueVideoById: function(id, this_duration, start, end){
|
||||||
console.log("cueVideoById");
|
|
||||||
var s;
|
var s;
|
||||||
var e;
|
var e;
|
||||||
if(start) s = start;
|
if(start) s = start;
|
||||||
|
|||||||
Reference in New Issue
Block a user