View Single Post
Posts: 53 | Thanked: 49 times | Joined on Jun 2007
#59
Originally Posted by thp View Post
No, right now it just pauses the player whenever the headphone is unplugged. There are some caveats to having it resume playback on reconnect (especially where more applications are concerned).

One example: Assume you have Media Player and Panucci open. It's okay to send a "pause" signal to both. You probably don't want to send a "resume" signal to both, however. Which one to choose then? It's not really obvious. The code is open, so if you want to give it a shot, feel free to do so
Installed headphoned and pausing works perfectly!

For replay I started thinking.. if the supported players are more or less known, it is possible to check which ones are running. If there is only one program running, there is no problem in choosing. If there is more than one program running, a dialog could be show listing the programs i.e. "Headphones reconnected, continue playing with [panucci] [media player] [none]?"
 

The Following User Says Thank You to VRe For This Useful Post: