More chromecastfeatures

- Click on player pauses/plays video
- Receives event on play/pause
- Some indentationfixes
- Not showing Join Channel modal when chromecast connected
This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-26 18:45:17 +01:00
parent 78fad1bbe0
commit ce656b97bc
4 changed files with 37 additions and 13 deletions

View File

@@ -283,6 +283,12 @@ var Player = {
}
},
playPauseVideo: function() {
if(chromecastAvailable) {
castSession.sendMessage("urn:x-cast:zoff.me", {type: "playPauseVideo"});
}
}
playVideo: function(){
if(chromecastAvailable){
castSession.sendMessage("urn:x-cast:zoff.me", {type: "playVideo"});