# GPIO controller
self.gpio_controller = GPIOController()
- self.gpio_controller.add_channel_callback(self.gpio_channel_play, self.gpio_play, 3000)
+ self.gpio_controller.add_channel_callback(self.gpio_channel_play, self.gpio_play, 1000)
self.gpio_controller.add_channel_callback(self.gpio_channel_stop, self.gpio_stop, 1000)
self.gpio_controller.start()
def play(self):
if not self.playing:
+ self.pipeline.set_state(gst.STATE_NULL)
self.pipeline.set_state(gst.STATE_PLAYING)
self.playing = True
elif self.auto_next: