mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed pausing on chromecast
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user