Add delete flag to method call in interact, so we can stop an audio stream and play another.

This commit is contained in:
Bill Dengler 2015-05-13 21:35:33 -04:00
parent 1d1c07caca
commit 1b4ebebf25

View File

@ -449,7 +449,7 @@ class baseBufferController(bufferController):
if hasattr(urls_list, "destroy"): urls_list.destroy()
if url != None:
if hasattr(sound.URLPlayer,'stream'):
return sound.URLPlayer.stop_audio()
return sound.URLPlayer.stop_audio(delete=True)
output.speak("Opening media...",True)
if sound.URLPlayer.is_playable(url=url,play=True) == False:
print "Opening",url,"in browser..."