View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#120
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.