Update frontend.py
Add definition of handle_play_stop which will allow the ALSA playback device to unlock for audio to be played back from an alternative sourceremotes/origin/HEAD
parent
d2f4003970
commit
d5851339a5
|
@ -63,6 +63,12 @@ class RaspberryGPIOFrontend(pykka.ThreadingActor, core.CoreListener):
|
||||||
else:
|
else:
|
||||||
self.core.playback.play()
|
self.core.playback.play()
|
||||||
|
|
||||||
|
def handle_play_stop(self, config):
|
||||||
|
if self.core.playback.get_state().get() == core.PlaybackState.PLAYING:
|
||||||
|
self.core.playback.stop()
|
||||||
|
else:
|
||||||
|
self.core.playback.play()
|
||||||
|
|
||||||
def handle_next(self, config):
|
def handle_next(self, config):
|
||||||
self.core.playback.next()
|
self.core.playback.next()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue