maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Make python play wav while media player is running (https://talk.maemo.org/showthread.php?t=81783)

colchaodemola 2012-01-22 12:53

Make python play wav while media player is running
 
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)


All times are GMT. The time now is 09:23.

vBulletin® Version 3.8.8