Add stop method to satisfy clear when playing test
This commit is contained in:
parent
9993b64983
commit
1bc2a28ec4
@ -22,6 +22,7 @@ class BaseCurrentPlaylistController(object):
|
||||
raise NotImplementedError
|
||||
|
||||
def clear(self):
|
||||
self.backend.playback.stop()
|
||||
self.playlist = Playlist()
|
||||
|
||||
class BasePlaybackController(object):
|
||||
@ -39,5 +40,8 @@ class BasePlaybackController(object):
|
||||
def play(self, id=None, position=None):
|
||||
raise NotImplementedError
|
||||
|
||||
def stop(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def next(self):
|
||||
raise NotImplementedError
|
||||
|
||||
@ -67,6 +67,9 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
|
||||
return True
|
||||
|
||||
def stop(self):
|
||||
self.bin.set_state(gst.STATE_NULL)
|
||||
|
||||
def next(self):
|
||||
playlist = self.backend.current_playlist.playlist
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user