mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix playback control of web streams (#7683)
Web streams can't be paused and resumed later. That's why volumio stops them instead of pausing them.
This commit is contained in:
parent
a9926e355f
commit
3fb691ead6
@ -190,6 +190,8 @@ class Volumio(MediaPlayerDevice):
|
||||
|
||||
def async_media_pause(self):
|
||||
"""Send media_pause command to media player."""
|
||||
if self._state['trackType'] == 'webradio':
|
||||
return self.send_volumio_msg('commands', params={'cmd': 'stop'})
|
||||
return self.send_volumio_msg('commands', params={'cmd': 'pause'})
|
||||
|
||||
def async_set_volume_level(self, volume):
|
||||
|
Loading…
x
Reference in New Issue
Block a user