austgl / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
0 stars 0 forks source link

Extra trigger criteria: USB power connected / disconneced #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using A2DP Volume to automatically start/stop Spotify when my HTC device is 
connected/disconnected to my car BT headset. Since my BT headset is always 
powered on (also when the car is turned off) the BT connection remains in tact 
when the phone is close by. 

It would be great if an extra criteria was available to trigger the actions 
like "USB power connected". I put my HTC device in a active car holder, so this 
is a perfect criteria to trigger on (in my situation). 

My situation would be:
"BT connected" AND "USB power connected" --> Change settings + start Spotify

"BT disconnected OR "USB power disconnected" --> Restore settings + stop Spotify

Original issue reported on code.google.com by maartenv...@gmail.com on 25 Apr 2012 at 8:20

GoogleCodeExporter commented 9 years ago
This was implemented per issue 97 in version 2.6.0 and up.  Its already there.  
Just go into preferences and check "Respond to Power Connection".  This will 
add "Power Connection" as a device which is exactly what you requested here.  
The AND/OR logic is not directly implemented but A2DP Volume does handle 
multiple connections.  The location capture will work for each device.  The 
volume adjustment back to previous only works after the last device with the 
set media volume disconnects.

Does this meet your requirement?

Original comment by JimR...@gmail.com on 25 Apr 2012 at 9:32