Add resume to gstreamer backend

This commit is contained in:
Thomas Adamcik 2010-02-14 15:21:56 +01:00
parent 9901820ea4
commit f2400f51ea
2 changed files with 7 additions and 0 deletions

View File

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

View File

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