Thread
:
Make python play wav while media player is running
View Single Post
colchaodemola
2012-01-22 , 12:53
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)
Quote & Reply
|
colchaodemola
View Public Profile
Send a private message to colchaodemola
Find all posts by colchaodemola