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.
pull/7704/head
cgtobi 2017-05-22 02:05:04 +02:00 committed by Paulus Schoutsen
parent 922303fd4b
commit b3cb057aac
1 changed files with 2 additions and 0 deletions

View File

@ -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):