Initial commit for volume slider in media player more info card
This commit is contained in:
1 parent
0583d63b67
commit
b30bdbfc6a
6 files changed
+241
-70
No files matched your search
@@ -156,6 +156,14 @@ class CastDevice(MediaPlayerDevice):
|
||||
""" Service to send the chromecast the command for volume down. """
|
||||
self.cast.volume_down()
|
||||
|
||||
def volume_mute(self):
|
||||
""" Service to send the chromecast the command for volume up. """
|
||||
self.cast.set_volume(0)
|
||||
|
||||
def volume_set(self, volume):
|
||||
""" Service to send the chromecast the command for volume down. """
|
||||
self.cast.set_volume(volume)
|
||||
|
||||
def media_play_pause(self):
|
||||
""" Service to send the chromecast the command for play/pause. """
|
||||
media_state = self.media_state
|
||||
|
||||
Reference in new issue
Block a user