castv2-player
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -150,7 +150,15 @@ "use strict" | ||
let that = this; | ||
return that._parseVolume(that._status.volume); | ||
if (that.getStatus()) { | ||
return that._parseVolume(that.getStatus().volume); | ||
} else { | ||
return 0; | ||
} | ||
} | ||
getIsMuted(){ | ||
let that = this; | ||
return that._parseVolume(that._status.volume.muted); | ||
if (that.getStatus()) { | ||
return that.getStatus().volume.muted; | ||
} else { | ||
return false; | ||
} | ||
} | ||
@@ -157,0 +165,0 @@ |
{ | ||
"name": "castv2-player", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A Chromecast client based on the new (CASTV2) protocol", | ||
@@ -5,0 +5,0 @@ "author": "angelnu", |
86333
2298