Update resume method
This commit is contained in:
parent
ea8399b58a
commit
1bc3693c6b
@ -79,8 +79,10 @@ class GStreamerPlaybackController(BasePlaybackController):
|
||||
self._set_state(gst.STATE_PAUSED)
|
||||
|
||||
def resume(self):
|
||||
if self.state != self.PLAYING:
|
||||
self.bin.set_state(gst.STATE_PLAYING)
|
||||
if self.state == self.STOPPED:
|
||||
self.play()
|
||||
else:
|
||||
self._set_state(gst.STATE_PLAYING)
|
||||
|
||||
@property
|
||||
def volume(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user