Thread
:
[Maemo 5/N900] Preventing audio playback being stopped by power button
View Single Post
eagle_linux
2011-06-21 , 09:03
Posts: 20 | Thanked: 16 times | Joined on Jun 2010
#
1
Greetings,
I'm trying to write an alarm clock application in python using pyqt.
I've managed to get audio files to play, using mplayer at the moment. However, there's one quite annoying problem: Whenever the power button is pressed, the playback pauses for about a second, and then continues in most cases. Even more annoying, sometimes mplayer seems to choke on the forced pause and doesn't continue playing at all.
I was trying to use gstreamer instead, but the simple pygst program from the official pygst tutorial seems to exhibit the same behaviour, i.e. it pauses for a second when the power button is pressed.
As the official N900 media player also uses gstreamer afaik and doesn't pause when the power button is pressed, I guess there is a way to prevent this from happening.
Any help would be greatly appreciated.
Regards,
Eagle_Linux
Quote & Reply
|
eagle_linux
View Public Profile
Send a private message to eagle_linux
Find all posts by eagle_linux