Chromecast app working

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 21:29:52 +01:00
parent 0ccf943934
commit ffc977157c
3 changed files with 4 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

@@ -157,6 +157,7 @@ var Player = {
playVideo: function(){ playVideo: function(){
if(chromecastAvailable){ if(chromecastAvailable){
castSession.sendMessage("urn:x-cast:zoff.no", {type: "playVideo"}); castSession.sendMessage("urn:x-cast:zoff.no", {type: "playVideo"});
socket.emit('pos', {channel: chan.toLowerCase()});
} else { } else {
Player.player.playVideo(); Player.player.playVideo();
} }