mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
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:
@@ -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"});
|
||||
|
||||
Reference in New Issue
Block a user