Add resume to gstreamer backend
This commit is contained in:
parent
9901820ea4
commit
f2400f51ea
@ -117,6 +117,9 @@ class BasePlaybackController(object):
|
||||
def pause(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def resume(self):
|
||||
raise NotImplementedError
|
||||
|
||||
@property
|
||||
def next_track(self):
|
||||
playlist = self.backend.current_playlist.playlist
|
||||
|
||||
@ -81,6 +81,10 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
if self.state == self.PLAYING:
|
||||
self.bin.set_state(gst.STATE_PAUSED)
|
||||
|
||||
def resume(self):
|
||||
if self.state != self.PLAYING:
|
||||
self.bin.set_state(gst.STATE_PLAYING)
|
||||
|
||||
def next(self):
|
||||
playlist = self.backend.current_playlist.playlist
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user