Fixed pausing on chromecast

This commit is contained in:
Kasper Rynning-Tønnesen
2016-12-11 00:46:56 +01:00
parent 4c3d8246ef
commit ee06ff94b7
7 changed files with 50 additions and 18 deletions

View File

@@ -80,13 +80,9 @@ var Playercontrols = {
{
if(chromecastAvailable){
if($("#play").hasClass("hide")){
castSession.sendMessage("urn:x-cast:zoff.no", {type: "pauseVideo"});
$("#play").toggleClass("hide");
$("#pause").toggleClass("hide");
Player.pauseVideo();
} else if($("#pause").hasClass("hide")){
castSession.sendMessage("urn:x-cast:zoff.no", {type: "playVideo"});
$("#play").toggleClass("hide");
$("#pause").toggleClass("hide");
Player.playVideo();
}
} else {