Fixed duration when navigating from and to channels

This commit is contained in:
Kasper Rynning-Tønnesen
2016-03-04 19:03:13 +01:00
parent 8501500345
commit 25f9d9ee00
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -279,7 +279,7 @@ var Player = {
}catch(e){};*/ }catch(e){};*/
if(duration != undefined){ if(duration != undefined){
try{ try{
durationBegun = true; if(!Player.stopInterval) durationBegun = true;
dMinutes = Math.floor(duration / 60); dMinutes = Math.floor(duration / 60);
dSeconds = duration - dMinutes * 60; dSeconds = duration - dMinutes * 60;
currDurr = Player.ytplayer.getCurrentTime() != undefined ? Math.floor(Player.ytplayer.getCurrentTime()) : seekTo; currDurr = Player.ytplayer.getCurrentTime() != undefined ? Math.floor(Player.ytplayer.getCurrentTime()) : seekTo;