Updated listener to look more for chromecastAvailable

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-22 18:58:10 +01:00
parent f866aa8a48
commit 05b28db083
3 changed files with 8 additions and 4 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

@@ -87,7 +87,11 @@ var Player = {
if(!Player.loaded) setTimeout(function(){Player.loaded = true;},500); if(!Player.loaded) setTimeout(function(){Player.loaded = true;},500);
}catch(e){ }catch(e){
if(!durationBegun) if(chromecastAvailable){
Player.loadVideoById(video_id);
Player.seekTo(seekTo);
}
if(!durationBegun && !chromecastAvailable)
Player.durationSetter(); Player.durationSetter();
} }
} }