![]() |
Re: Stopping music/media player when headset unplugged
|
Re: Stopping music/media player when headset unplugged
Code:
#!/usr/bin/python |
Re: Stopping music/media player when headset unplugged
Quote:
Though the real test would be if the player pauses whilst Media Player is open - if it's closed, the state changing via libplayback is enough for the applet... Shame you didn't use DBus-GLib, you could've taken the stuff from here instead of the nasty D-Bus signal rule you have to make (mind, I lose points on glib-genmarshal :\) :p |
Re: Stopping music/media player when headset unplugged
Quote:
|
Re: Stopping music/media player when headset unplugged
Now that I have access to my SDK VM and the N900, I've fixed up the patch and merged it into the repository:
http://repo.or.cz/w/headphoned.git/c...ff/3077ae9b0fc It works fine for me during testing with Skype's echo123 lady, and I assume it works also for incoming ("ringing") calls. It did not work when I sent the "pause" signal immediately when the call was disconnected, so I now send it 500ms after the call has been disconnected. It works reliable now for me, but you can hear ~ 400ms worth of your music between the time the call is disconnected and the time the signal is sent by headphoned and processed by the media player. Still better than pausing it manually in my opinion (although I can anticipate some bug reports complaining about this behaviour.. hehe). This feature will be part of the upcoming headphoned release. Thanks for your valuable input, Surstroemming and Faheem :) |
Re: Stopping music/media player when headset unplugged
I loved headphoned but can't use it as it triggers the bug in the audio subsystem which disables system sounds (new text/email/IM notification etc.)... Does anyone know if there has been any progress on this bug or is it being ignored (seems so)?
It's a shame, as it's not headphoned's fault. |
Re: Stopping music/media player when headset unplugged
headphoned 1.9 will soon be available in Extras-Testing. Please test and vote for it:
http://maemo.org/packages/view/headphoned/ |
Re: Stopping music/media player when headset unplugged
A feature request - sorry if this is out of scope
It'd be nice if headphoned could detect an audio cable being plugged in, and then to run a user-configurable application, e.g., media player. |
Re: Stopping music/media player when headset unplugged
Quote:
|
Re: Stopping music/media player when headset unplugged
If not headphoned, do you know of a different existing application where this would be a better fit?
|
All times are GMT. The time now is 02:42. |
vBulletin® Version 3.8.8