Add basic play method to gstreamer

This commit is contained in:
Thomas Adamcik 2010-02-07 05:07:37 +01:00
parent cc8fbeef87
commit e654750b73

View File

@ -26,3 +26,7 @@ class GStreamerPlaybackController(BasePlaybackController):
bin.set_property("video-sink", sink)
self.bin = bin
def play(self, id=None, position=None):
self.bin.set_property("uri", self.current_track.uri)
self.bin.set_state(self.PLAYING)