maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Stopping music/media player when headset unplugged (https://talk.maemo.org/showthread.php?t=33215)

silvermountain 2009-11-19 21:00

Re: Stopping music/media player when headset unplugged
 
This would indeed be a very useful application - and seems like a well implemented one (no interface, etc - just auto-pause when headset is unplugged) - if it would support more of the media players.

Thor 2009-11-19 21:13

Re: Stopping music/media player when headset unplugged
 
A setting within headsets or media player would be great !

thp 2009-11-19 22:52

Re: Stopping music/media player when headset unplugged
 
Ok you asked for it.. headphoned 1.3 (currently wandering through the autobuilder) gained support for pausing Panucci in addition to the built-in Media Player. The only other media player that is on my roadmap would be MPlayer, and that will be a bit more tricky :)

thp 2009-11-20 09:21

Re: Stopping music/media player when headset unplugged
 
headphoned 1.3 is now in Extras-Devel for Chinook and Diablo. Please test this release, and report any issues here. I will push the package to Extras if no bugs surface in the next few days. Thankd for your help!

silvermountain 2009-11-21 00:24

Re: Stopping music/media player when headset unplugged
 
I installed 1.3 and, playing with panucci it seems to pause the player perfectly.
If I play through the speakers and insert the headphones it continues to play through the headphones without a pause - which I think works great.

Thanks, this was much needed!

thp 2009-11-21 18:06

Re: Stopping music/media player when headset unplugged
 
headphoned 1.4 is now in Extras-Devel for Chinook and Diablo, and should support MPlayer in addition to Panucci and Media Player. This should also work for applications that use MPlayer as their backend (e.g. Canola).

OVK 2009-11-27 09:28

Re: Stopping music/media player when headset unplugged
 
Quote:

Originally Posted by thp (Post 385391)
headphoned 1.4 is now in Extras-Devel for Chinook and Diablo, and should support MPlayer in addition to Panucci and Media Player. This should also work for applications that use MPlayer as their backend (e.g. Canola).

Any change of getting this functionality for N900? At least I could not find a way to stop the music from playing in N900 speakers when the headphone plug was pulled out.

thp 2009-11-27 10:48

Re: Stopping music/media player when headset unplugged
 
Quote:

Originally Posted by OVK (Post 395439)
Any change of getting this functionality for N900? At least I could not find a way to stop the music from playing in N900 speakers when the headphone plug was pulled out.

The N900 maintains two different volume levels (for plugged and unplugged headphones), so to avoid public transport situations, you just have to unplug your headphones, set the volume to zero, plug them in again, and set your preferred volume. Whenever the headphones get unplugged, the volume will be muted, and when they are reconnected, the volume will be restored.

That said, there might be a use case for having headphoned the N900 as well, just have not got around to do it, as the volume feature described above fixes public transport situations for me already ;)

OVK 2009-11-27 12:08

Re: Stopping music/media player when headset unplugged
 
Quote:

Originally Posted by thp (Post 395566)
The N900 maintains two different volume levels (for plugged and unplugged headphones), so to avoid public transport situations, you just have to unplug your headphones, set the volume to zero, plug them in again, and set your preferred volume. Whenever the headphones get unplugged, the volume will be muted, and when they are reconnected, the volume will be restored.

That said, there might be a use case for having headphoned the N900 as well, just have not got around to do it, as the volume feature described above fixes public transport situations for me already ;)

OK, thanks! That also explains why I almost blew my ears: I set the volume quiet when using speakers, connected the headphones and started to wonder why the music was so terribly loud... ;)

Is it by the way possible to send other commands besides PAUSE with your program? I have understood that it is for example possible to control Nokia 5800 XpressMusic's music player with Nokia AD-54 remote control. I tested the AD-54 with N900 and it does not work. I was just wondering if this is a hardware limitation or software limitation.

Nokia AD-54: http://europe.nokia.com/find-product...ts/hs-45-ad-54

5tapl3r 2009-12-14 17:10

Re: Stopping music/media player when headset unplugged
 
Quote:

Originally Posted by thp (Post 395566)
The N900 maintains two different volume levels (for plugged and unplugged headphones), so to avoid public transport situations, you just have to unplug your headphones, set the volume to zero, plug them in again, and set your preferred volume. Whenever the headphones get unplugged, the volume will be muted, and when they are reconnected, the volume will be restored.

now does this mute your phone so you can't hear it ring, or does that not factor into the equation?


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

vBulletin® Version 3.8.8