Active Topics

 


Reply
Thread Tools
Posts: 187 | Thanked: 41 times | Joined on May 2010
#1
I am trying to make a python script play a wave file every 10 seconds (just a beep) , it works great but if the media player is playing some mp3 the beep just does not play. No error, i just can't hear it. is there a way to make this work ?

I am using :
def play_uri():
player = gst.element_factory_make("playbin", "player")
player.set_property('uri',"file:///opt/customs/beep.wav" )
player.set_state(gst.STATE_PLAYING)
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:27.