Updated to seekto if currentduration is wrong

This commit is contained in:
Kasper Rynning-Tønnesen
2016-12-12 17:23:38 +01:00
parent ccf6f7cc8a
commit 66570a6813
3 changed files with 4 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ var Player = {
if(!durationBegun)
Player.durationSetter();
}
if(Player.player.getDuration() > seekTo || Player.player.getDuration() === 0 || chromecastAvailable)
if(Player.player.getDuration() > seekTo || Player.player.getDuration() === 0 || chromecastAvailable || Player.player.getCurrentTime() != seekTo)
Player.seekTo(seekTo);
Player.after_load = video_id;