Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Stopping music/media player when headset unplugged

    Reply
    Page 12 of 13 | Prev | 2   10     11   12   13   | Next
    thp | # 111 | 2010-03-18, 21:14 | Report

    In the mean time, headphoned 1.8 has been uploaded to Extras-Devel today, and it adds support for stopping the FM Radio application in addition to Media Player, Panucci and MPlayer. Go vote for it once it enters Extras-Testing!

    The D-Bus API for FM Radio has only recently been added by Martin (pycage), so this might not work immediately with the current version in the Maemo repositories, but will work with a future version.

    No merging of qwerty12's patch for now, but maybe in a future release (it would be very helpful if you could somewhere post your patches as complete git patchset against the current git master branch on repo.or.cz - obviously I'm very lazy today.. .

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

     
    qwerty12 | # 112 | 2010-03-20, 08:28 | Report

    Originally Posted by thp View Post
    No merging of qwerty12's patch for now, but maybe in a future release (it would be very helpful if you could somewhere post your patches as complete git patchset against the current git master branch on repo.or.cz - obviously I'm very lazy today.. .
    I know, I know; attaching to a forum isn't the best way to send you patches... :\

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: tar out.tar (10.0 KB, 86 views)
    The Following User Says Thank You to qwerty12 For This Useful Post:
    thp

     
    thp | # 113 | 2010-03-20, 10:01 | Report

    Originally Posted by qwerty12 View Post
    I know, I know; attaching to a forum isn't the best way to send you patches... :\
    Thanks, looks good - applied locally here. Just one question: is the file debian/triggers created somewhere or did you forget to add it? If so, please include it (preferably with another Git patch, so I can easily apply it, and you get credited in the git changelog with your name).

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

     
    qwerty12 | # 114 | 2010-03-20, 10:10 | Report

    Originally Posted by thp View Post
    Thanks, looks good - applied locally here. Just one question: is the file debian/triggers created somewhere or did you forget to add it? If so, please include it (preferably with another Git patch, so I can easily apply it, and you get credited in the git changelog with your name).
    Bollocks! Thanks! (As you will have guessed, my lack of knowledge generally has me avoiding SCMs...)

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: tar 0003-Add-the-debian-triggers-file-So-that-if-it-gets-o.patch.tar (10.0 KB, 88 views)
    The Following User Says Thank You to qwerty12 For This Useful Post:
    thp

     
    thp | # 115 | 2010-03-20, 11:52 | Report

    Originally Posted by qwerty12 View Post
    Bollocks!
    Thanks, I've merged your patches now: http://repo.or.cz/w/headphoned.git

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

     
    Strutten | # 116 | 2010-04-27, 14:30 | Report

    Would it be possible for headphoned to work on nQaap?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    thp | # 117 | 2010-04-27, 14:35 | Report

    Originally Posted by Strutten View Post
    Would it be possible for headphoned to work on nQaap?
    Sure. Just provide a D-Bus interface with a "pause" method that headphoned can call, and I'll add support for it to the next headphoned release. What is needed for this:
    • D-Bus Service Name (e.g. org.example.nqaap)
    • D-Bus Object Path (e.g. /org/example/nqaap)
    • D-Bus Interface (e.g. org.example.nqaap)
    • Name of the method ("pause" is a good name here )

    (Of course, the author has to implement the D-Bus interface in nQaap)

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

     
    Strutten | # 118 | 2010-04-27, 15:35 | Report

    Originally Posted by thp View Post
    Sure. Just provide a D-Bus interface with a "pause" method that headphoned can call, and I'll add support for it to the next headphoned release. What is needed for this:
    • D-Bus Service Name (e.g. org.example.nqaap)
    • D-Bus Object Path (e.g. /org/example/nqaap)
    • D-Bus Interface (e.g. org.example.nqaap)
    • Name of the method ("pause" is a good name here )

    (Of course, the author has to implement the D-Bus interface in nQaap)
    Since a D-Bus sounds like a Bus on the D-line to me, I'll just link to this post in the nQaap-thread!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    slobodsky | # 119 | 2010-05-31, 17:27 | Report

    The problem with muted sounds isn't headphoned related. I have it in my application too. If I send "pause" command through D-Bus or libmafw it happens too. It can be the media player's bug.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by slobodsky; 2010-05-31 at 18:01.
    The Following User Says Thank You to slobodsky For This Useful Post:
    thp

     
    thp | # 120 | 2010-07-16, 20:20 | Report

    Originally Posted by Surstroemming View Post
    I guess the deamon currently is only "aware" of the state of the headphone jack, is it possible to make it register the state of calls happening or the trigger that starts the audio again after a call?
    This might be possible - if the call state can be queried via D-Bus or if at least something like "call started" and "call ended" is sent as D-Bus signal. In this case, headphoned could listen to these signals, and maintain an internal "currently on a call" flag. If this flag is on when headphoned sends the "pause" signal (if it senses "headphones unplugged"), it will send another "pause" signal when the "call ended" signal is seen on D-Bus. The "pause" signal is idempotent for most media players, anyway, so sending it again after the call should do no harm.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 12 of 13 | Prev | 2   10     11   12   13   | Next
vBulletin® Version 3.8.8
Normal Logout