mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-11-04 13:57:05 +00:00 
			
		
		
		
	Add delete flag to method call in interact, so we can stop an audio stream and play another.
This commit is contained in:
		@@ -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..."
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user