The AVRCP Target component is the intermediary between the core AVRCP component and active media on the device. The component provides a distinct abstraction between the business logic of AVRCP and the state of the currently playing media. AVRCP Target subscribes to updates about registered media sessions and relays the information to the core AVRCP component.
Follow the steps for the AVRCP build configuration and add --with //src/connectivity/bluetooth/profiles/bt-avrcp-target to include AVRCP-Target in your build.
To run the component:
fx shellrun bt-avrcp-target.cmxAVRCP Target relies on unit tests to validate behavior. To run the tests, add --with //src/connectivity/bluetooth/profiles/bt-avrcp-target:tests to your build.
To run the tests:
fx test bt-avrcp-target-tests
The code is split into the aforementioned AVRCP-Media abstraction.
media modfuchsia.media.sessions2 FIDL service.MediaSessions object with changes in state.MediaSessions provides an interface to query and modify relevant information about the current session.avrcp_handler modTargetHandler using the fuchsia.bluetooth.avrcp.PeerManager FIDL service.fuchsia.bluetooth.avrcp.TargetHandler FIDL protocol.MediaSessions to get the latest information about the session.