mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Add delete flag to method call in interact, so we can stop an audio stream and play another.
This commit is contained in:
parent
1d1c07caca
commit
1b4ebebf25
@ -449,7 +449,7 @@ class baseBufferController(bufferController):
|
|||||||
if hasattr(urls_list, "destroy"): urls_list.destroy()
|
if hasattr(urls_list, "destroy"): urls_list.destroy()
|
||||||
if url != None:
|
if url != None:
|
||||||
if hasattr(sound.URLPlayer,'stream'):
|
if hasattr(sound.URLPlayer,'stream'):
|
||||||
return sound.URLPlayer.stop_audio()
|
return sound.URLPlayer.stop_audio(delete=True)
|
||||||
output.speak("Opening media...",True)
|
output.speak("Opening media...",True)
|
||||||
if sound.URLPlayer.is_playable(url=url,play=True) == False:
|
if sound.URLPlayer.is_playable(url=url,play=True) == False:
|
||||||
print "Opening",url,"in browser..."
|
print "Opening",url,"in browser..."
|
||||||
|
Loading…
Reference in New Issue
Block a user