Stopping a range of functions

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 20:18:36 +01:00
parent 05a24e63ba
commit 48f14c644e
4 changed files with 7 additions and 7 deletions

View File

@@ -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)