Trying fix for mobile

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-22 10:17:51 +01:00
parent 2e34170a82
commit bbb0d6b7a6
2 changed files with 6 additions and 2 deletions

View File

@@ -256,6 +256,8 @@ initializeCastApi = function() {
castSession = cast.framework.CastContext.getInstance().getCurrentSession();
castSession.addMessageListener("urn:x-cast:zoff.no", chromecastListener)
chromecastAvailable = true;
paused = false;
mobile_beginning = false;
castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideo", videoId: video_id, seekTo: Player.player.getCurrentTime()})
castSession.sendMessage("urn:x-cast:zoff.no", {type: "nextVideo", videoId: full_playlist[0].id, title: full_playlist[0].title})
hide_native(1);
@@ -264,6 +266,8 @@ initializeCastApi = function() {
castSession = cast.framework.CastContext.getInstance().getCurrentSession();
castSession.addMessageListener("urn:x-cast:zoff.no", chromecastListener)
chromecastAvailable = true;
paused = false;
mobile_beginning = false;
castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideo", videoId: video_id, seekTo: Player.player.getCurrentTime()})
castSession.sendMessage("urn:x-cast:zoff.no", {type: "nextVideo", videoId: full_playlist[0].id, title: full_playlist[0].title})
hide_native(1);