mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
avrcp_controller: implement avrcp_controller_get_now_playing_info_for_media_attribute_id
This commit is contained in:
parent
6b65794db8
commit
66e22952df
@ -1572,6 +1572,13 @@ uint8_t avrcp_controller_get_now_playing_info(uint16_t avrcp_cid){
|
||||
return avrcp_controller_get_element_attributes(avrcp_cid, 0, NULL);
|
||||
}
|
||||
|
||||
uint8_t avrcp_controller_get_now_playing_info_for_media_attribute_id(uint16_t avrcp_cid, avrcp_media_attribute_id_t media_attribute_id){
|
||||
if (media_attribute_id == AVRCP_MEDIA_ATTR_ALL){
|
||||
return avrcp_controller_get_now_playing_info(avrcp_cid);
|
||||
}
|
||||
return avrcp_controller_get_element_attributes(avrcp_cid, 1, &media_attribute_id);
|
||||
}
|
||||
|
||||
uint8_t avrcp_controller_set_absolute_volume(uint16_t avrcp_cid, uint8_t volume){
|
||||
avrcp_connection_t * connection = avrcp_get_connection_for_avrcp_cid_for_role(AVRCP_CONTROLLER, avrcp_cid);
|
||||
if (!connection){
|
||||
|
@ -255,6 +255,14 @@ uint8_t avrcp_controller_get_element_attributes(uint16_t avrcp_cid, uint8_t num_
|
||||
*/
|
||||
uint8_t avrcp_controller_get_now_playing_info(uint16_t avrcp_cid);
|
||||
|
||||
/**
|
||||
* @brief Get info on now playing media using specific media attribute ID.
|
||||
* @param media_attribute_id
|
||||
* @param avrcp_cid
|
||||
* @return status
|
||||
*/
|
||||
uint8_t avrcp_controller_get_now_playing_info_for_media_attribute_id(uint16_t avrcp_cid, avrcp_media_attribute_id_t media_attribute_id);
|
||||
|
||||
/**
|
||||
* @brief Set absolute volume 0-127 (corresponds to 0-100%). Response via AVRCP_SUBEVENT_SET_ABSOLUTE_VOLUME_RESPONSE
|
||||
* @param avrcp_cid
|
||||
|
Loading…
x
Reference in New Issue
Block a user