Add playback states to GStreamer
This commit is contained in:
parent
9a268721e1
commit
58e636838b
@ -1,5 +1,7 @@
|
||||
import logging
|
||||
|
||||
import gst
|
||||
|
||||
from mopidy.backends import BaseBackend, BasePlaybackController
|
||||
|
||||
logger = logging.getLogger(u'backends.gstreamer')
|
||||
@ -11,5 +13,9 @@ class GStreamerBackend(BaseBackend):
|
||||
self.playback = GStreamerPlaybackController(self)
|
||||
|
||||
class GStreamerPlaybackController(BasePlaybackController):
|
||||
PAUSED = gst.STATE_PAUSED
|
||||
PLAYING = gst.STATE_PLAYING
|
||||
STOPPED = gst.STATE_NULL
|
||||
|
||||
def __init__(self, backend):
|
||||
super(GStreamerPlaybackController, self).__init__(backend)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user