Added a2dp/AVRCP broadcasts to Android Client
Brought to you by:
sindre_mehus
Added intent broadcasts for CM 7's A2DP receiver. This enables metadata on the lock-screen, and improves reliability of lock-screen controls (it knows when subsonic is playing).
This also enables external devices that support AVRCP 1.3 to display currently playing track information. However, the implementation of AVRCP 1.3 in CM7 contains an error and a fix as described here: http://code.google.com/p/cyanogenmod/issues/detail?id=4363. I would expect this fix to be incorporated in future versions.
At this time the position and duration of the currently playing track is not functioning. I will submit another patch if/when I am able to correct the problem.
Anonymous
Here is an updated version that takes advantage of the new RemoteControlClient class. This is not CM specific and should work on all devices with ICS or above.