mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Stopping a range of functions
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -308,7 +308,7 @@ function chromecastListener(evt, data){
|
||||
console.log(data);
|
||||
var json_parsed = JSON.parse(data);
|
||||
switch(json_parsed){
|
||||
case "-1":
|
||||
case -1:
|
||||
socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()});
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -71,14 +71,14 @@ var Player = {
|
||||
{
|
||||
Player.loadVideoById(video_id);
|
||||
Player.notifyUser(video_id, song_title);
|
||||
Player.seekTo(seekTo);
|
||||
if(!chromecastAvailable) Player.seekTo(seekTo);
|
||||
if(paused)
|
||||
Player.pauseVideo();
|
||||
}
|
||||
if(!paused){
|
||||
if(!mobile_beginning)
|
||||
Player.playVideo();
|
||||
if(!durationBegun)
|
||||
if(!chromecastAvailable)Player.playVideo();
|
||||
if(!chromecastAvailable && !durationBegun)
|
||||
Player.durationSetter();
|
||||
}
|
||||
if(Player.player.getDuration() > seekTo || Player.player.getDuration() === 0 || chromecastAvailable)
|
||||
|
||||
Reference in New Issue
Block a user