Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Stopping music/media player when headset unplugged

    Reply
    Page 2 of 13 | Prev |   1   2   3     4   12 | Next | Last
    thp | # 11 | 2009-10-22, 08:58 | Report

    Originally Posted by Tintin View Post
    I wasn't sure if the code you included was supposed to be run as two entries or as one long sentence.
    I tried both but did not seem to do anything.
    When executing the first row I don't get any confirmation or error message.
    When executing the second row I got 'no permission'.
    I tried checking for active processes using an app i got running in tne status barr but it didnt show there - and i also tried pulling out the cord whilst playing a podcast through gpodder/panucci but the player did not pause.
    You should place the file in /home/user, as (I think) the SD cards are mounted with noexec (meaning you cannot execute applications on it). If you have the binary in the root of /media/mmc2/ (for example), move them (using the "mv" command) to /home/user, then cd into /home/user, make it executable (just to make sure) and start it:

    Code:
    mv /media/mmc2/headphoned-armel-diablo /home/user/
    cd /home/user/
    chmod +x headphoned-armel-diablo
    ./headphoned-armel-diablo &
    The pause setting only works for the built-in Media Player right now, not for Panucci (or any other media player). Adding support for this would not be too difficult, however.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to thp For This Useful Post:
    Apoc

     
    thp | # 12 | 2009-10-22, 15:14 | Report

    I have now created a proper package with an init script that takes care of starting headphoned when the system starts (and on installation). The package is called "headphoned" ("Headphone daemon" in the Application Manager) and will be available in Extras-Devel right now. Product page and garage project (for hosting the source) are in the works...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to thp For This Useful Post:
    Apoc, davost, Tintin, twaelti

     
    Flandry | # 13 | 2009-10-22, 15:18 | Report

    I had a "public transit situation" the other day and found myself wishing for just this feature. Awesome.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    davost | # 14 | 2009-10-22, 16:08 | Report

    Thanks for this useful app.
    Installed it from the rep and it works like a charm.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Tintin | # 15 | 2009-10-23, 07:01 | Report

    Maybe it's me but I don't get this to work.

    I downloaded the headphone daemon from the app manager. It says it installed ok.
    I start up gpodder and launch a podcast so it starts playing through panucci.
    I pull out the headset and the podcast continues to play through the speakers

    When I look at 'active processes' I see headphoned running (964kb).

    Help

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Tintin; 2009-10-23 at 07:09.

     
    thp | # 16 | 2009-10-23, 10:23 | Report

    Originally Posted by Tintin View Post
    I downloaded the headphone daemon from the app manager. It says it installed ok.
    I start up gpodder and launch a podcast so it starts playing through panucci.
    Right now, the headphone daemon only sends the pause signal to the built-in media player, not Panucci. It works fine with the media player, just tested it some minutes ago.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to thp For This Useful Post:
    Tintin

     
    Tintin | # 17 | 2009-10-23, 20:19 | Report

    Originally Posted by thp View Post
    Right now, the headphone daemon only sends the pause signal to the built-in media player, not Panucci. It works fine with the media player, just tested it some minutes ago.
    Ah, that would explain it

    Any chance that 1.3 will allow panucci and Mplayer to be paused as well?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    davost | # 18 | 2009-10-25, 11:40 | Report

    Once I made a script to pause Panucci. This was the magic line
    Maybe this can help in some way

    Code:
    dbus-send --type="method_call" --dest=org.panucci.panucciInterface /panucciInterface org.panucci.panucciInterface.playPause

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to davost For This Useful Post:
    thp

     
    thp | # 19 | 2009-10-25, 12:01 | Report

    Originally Posted by Tintin View Post
    Any chance that 1.3 will allow panucci and Mplayer to be paused as well?
    I have some idea how to implement it for MPlayer, and thanks to the previous post, adding support for Panucci does not seem to be too difficult, either. Free time is lacking atm. Give me some days/weeks. The code is open, and the Git repository available on Garage, in case anyone wants to submit a patch

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to thp For This Useful Post:
    Tintin

     
    Tintin | # 20 | 2009-11-07, 17:02 | Report

    I had another 'incident' the other day where panucci started blasting the latest edition of Coverville to all the people on the bus

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 13 | Prev |   1   2   3     4   12 | Next | Last
vBulletin® Version 3.8.8
Normal Logout