mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Progressbar color
Volume control working
This commit is contained in:
18
mopidy_touchscreen/touch_screen_backend.py
Normal file
18
mopidy_touchscreen/touch_screen_backend.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import pykka
|
||||
from mopidy import backend
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class TouchScreenBackend(pykka.ThreadingActor, backend.Backend):
|
||||
|
||||
def __init__(self, config, audio):
|
||||
super(TouchScreenBackend, self).__init__()
|
||||
self.audio = audio
|
||||
logger.error("backend funciona")
|
||||
|
||||
def on_receive(self, message):
|
||||
logger.error("heldu naiz")
|
||||
if message['action'] == 'volume':
|
||||
logger.error("bolumena aldatzen")
|
||||
self.audio.set_volume(message['value'])
|
||||
Reference in New Issue
Block a user