Merge branch 'wildestpixel-master'

remotes/origin/HEAD
Phil Howard 2020-07-14 14:50:33 +01:00
commit cdf2075168
1 changed files with 6 additions and 0 deletions

View File

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