Call pause() at end of each stream
This commit is contained in:
parent
b85f1ac5c4
commit
6a2ec62015
|
@ -43,7 +43,9 @@ def play():
|
||||||
|
|
||||||
def pause():
|
def pause():
|
||||||
global audio
|
global audio
|
||||||
|
print "pausing..."
|
||||||
return call("PAUSE", audio.pause)
|
return call("PAUSE", audio.pause)
|
||||||
|
libsaria.event.invite("PREEOS", pause)
|
||||||
|
|
||||||
|
|
||||||
def stop():
|
def stop():
|
||||||
|
|
|
@ -87,7 +87,6 @@ def pause():
|
||||||
global player
|
global player
|
||||||
player.set_state(gst.STATE_PAUSED)
|
player.set_state(gst.STATE_PAUSED)
|
||||||
|
|
||||||
|
|
||||||
def stop():
|
def stop():
|
||||||
pause()
|
pause()
|
||||||
seek(0)
|
seek(0)
|
||||||
|
|
Loading…
Reference in New Issue