fuchsia.bluetooth.avrcp

PROTOCOLS

PeerManager

Defined in fuchsia.bluetooth.avrcp/controller.fidl

GetControllerForTarget

Returns a controller client to a remote target (TG) service at the peer specified by peer_id. TODO (BT-305): change peer_id to fuchsia.bluetooth.PeerId type after BrEdr profile service switches.

Request

NameType
peer_id string
client request<Controller>

Response

NameType
result PeerManager_GetControllerForTarget_Result

SetAbsoluteVolumeHandler

Set the absolute volume handler. Only one handler may be set at at time. If a second handler is registered it will be dropped and an error will be returned.

Request

NameType
handler AbsoluteVolumeHandler

Response

NameType
result PeerManager_SetAbsoluteVolumeHandler_Result

RegisterTargetHandler

Sets an implementation of target handler that will vend delegates for each incoming remote TG -> local CT connections to handle the commands being sent by the remote TG.

Request

NameType
handler TargetHandler

Response

NameType
result PeerManager_RegisterTargetHandler_Result

AbsoluteVolumeHandler

Defined in fuchsia.bluetooth.avrcp/controller.fidl

Handler for absolute volume requests from a remote peer. See AVRCP v 1.6.2 section 6.13.2. Absolute volume is represented as a percentage using one byte with the most significant bit reserved. 0% is represented as 0x0 and 100% as 0x7f. Volume should scaled between the two values.

SetVolume

Requests that the absolute volume of the player be changed. requested_volume is the requested volume by the peer. Returns the actual volume set locally by the handler.

Request

NameType
requested_volume uint8

Response

NameType
set_volume uint8

OnVolumeChanged

Returns latest volume of the handler to the AVRCP service. This function should return immediately on the first call and if the volume has changed since the last call to this function, otherwise it should only return when the volume has been changed.

Request

NameType

Response

NameType
new_volume uint8

GetCurrentVolume

Returns the current volume immediately.

Request

NameType

Response

NameType
volume uint8

Controller

Defined in fuchsia.bluetooth.avrcp/controller.fidl

Client wrapper for local controller (CT) -> remote target (TG) AVCTP connections between devices. A client is high level construct and does not represent a connection with a device. Connections are internally managed and may be shared by multiple clients. The actual connection may be opened on-demand after any command here is called.

GetPlayerApplicationSettings

Returns currently set player application setting values for the attribute_ids. If no attribute_ids are provided, this method will query the TG for all valid attribute ID's, and return the currently set player application setting values.

Request

NameType
attribute_ids vector<PlayerApplicationSettingAttributeId>[131]

Response

NameType
result Controller_GetPlayerApplicationSettings_Result

SetPlayerApplicationSettings

Sets the player application settings specified by requested_settings. Only settings specified in the input requested_settings will be overwritten. Returns the actual settings that were set. Settings provided in the requested_settings that are unsupported or unknown will not be set; the returned set_settings will include only the settings that were successfully set on the remote target.

Request

NameType
requested_settings PlayerApplicationSettings

Response

NameType
result Controller_SetPlayerApplicationSettings_Result

GetMediaAttributes

Returns the currently playing media attributes. May send either the GetElementAttributes or GetItemAttributes command depending on what is supported.

Request

NameType

Response

NameType
result Controller_GetMediaAttributes_Result

GetPlayStatus

Returns the status of the currently playing media.

Request

NameType

Response

NameType
result Controller_GetPlayStatus_Result

SetAbsoluteVolume

Request the absolute volume on the peer be changed. Returns the actual volume set by the peer. Values can range from 0x00 to 0x7F (with 100% volume being 0x7F). You may not get a volume changed notification event from the remote peer as result of changing this.

Request

NameType
requested_volume uint8

Response

NameType
result Controller_SetAbsoluteVolume_Result

InformBatteryStatus

Inform target of the controller's battery level.

Request

NameType
battery_status BatteryStatus

Response

NameType
result Controller_InformBatteryStatus_Result

SetNotificationFilter

Filters notifications that will be received with OnNotification. Not all notifications are supported by all peers. Resetting the notification filter may trigger all requested notification types to post their current value to OnNotification immediately.

The position_change_interval argument is used to set the interval in seconds that the controller client would like to be notified of TRACK_POS_CHANGED events. position_change_interval is ignored if TRACK_POS is not set. The position change interval is best effort and not a guarantee and events may arrive more frequently or less frequently than requested.

Request

NameType
notifications Notifications
position_change_interval uint32

OnNotification

Incoming notification events from the target peer. timestamp is monotonic wall time of when the event was received by the peer. You must call NotifyNotificationHandled after receving a notification event to acknowledge delivery. Multiple non-discrete events may be combined into a single notification if acknowledged after a new event arrives from a peer. Call SetNotificationFilter to set the notifications that are requested of the peer. All notifications are discrete state changes except volume change and position change notifications.

Response

NameType
timestamp zx/time
notification Notification

NotifyNotificationHandled

Call to acknowledge handling of a notification from OnNotification.

Request

NameType

SetAddressedPlayer

Changes the addressed player_id on the target when multiple are supported.

Request

NameType
player_id uint16

Response

NameType
result Controller_SetAddressedPlayer_Result

SendCommand

Send an AV\C passthrough key command. Sends both a key down and key up event.

Request

NameType
command AvcPanelCommand

Response

NameType
result Controller_SendCommand_Result

TargetHandler

Defined in fuchsia.bluetooth.avrcp/target.fidl

Client wrapper for the local target. A client is a high level construct and does not represent a connection with a device.

GetEventsSupported

Returns the event notification ids that are supported by the TG.

Request

NameType

Response

NameType
result TargetHandler_GetEventsSupported_Result

GetMediaAttributes

Returns the currently playing media attributes. May send either the GetElementAttributes or GetItemAttributes command depending on what is supported.

Request

NameType

Response

NameType
result TargetHandler_GetMediaAttributes_Result

GetPlayStatus

Returns the status of the currently playing media.

Request

NameType

Response

NameType
result TargetHandler_GetPlayStatus_Result

SendCommand

Send an AV\C passthrough key command. If key_pressed, then the AV\C passthrough command shall be interpreted as a key press down event. Otherwise, the command shall be interpreted as a key release event.

Request

NameType
command AvcPanelCommand
pressed bool

Response

NameType
result TargetHandler_SendCommand_Result

ListPlayerApplicationSettingAttributes

Request the target device to provide all the target supported player application setting attributes.

Request

NameType

Response

NameType
result TargetHandler_ListPlayerApplicationSettingAttributes_Result

GetPlayerApplicationSettings

Returns currently set player application setting values for the attribute_ids. If no attribute_ids are provided, this method will query the TG for all valid attribute ID's, and return the currently set player application setting values.

Request

NameType
attribute_ids vector<PlayerApplicationSettingAttributeId>[131]

Response

NameType
result TargetHandler_GetPlayerApplicationSettings_Result

SetPlayerApplicationSettings

Sets the player application settings specified by requested_settings. Only settings specified in the input requested_settings will be overwritten. Returns the actual settings that were set. Settings provided in the requested_settings that are unsupported or unknown will not be set; and SetPlayerApplicationSettings will not return an error. Instead, the returned set_settings will include only the settings that were successfully set on the remote target.

Request

NameType
requested_settings PlayerApplicationSettings

Response

NameType
result TargetHandler_SetPlayerApplicationSettings_Result

GetNotification

Returns the current value for the notification specified by event_id.

Request

NameType
event_id NotificationEvent

Response

NameType
result TargetHandler_GetNotification_Result

WatchNotification

Returns the changed value of the notification specified by 'event_id'. A changed value refers to any value that is different than the input parameter current Notification value. WatchNotification will not respond until the Notification value associated with event_id has changed from the current Notification.

Request

NameType
event_id NotificationEvent
current Notification
pos_change_interval uint32

Response

NameType
result TargetHandler_WatchNotification_Result

SetAddressedPlayer

Changes the addressed player_id on the target when multiple are supported.

Request

NameType
player_id AddressedPlayerId

Response

NameType
result TargetHandler_SetAddressedPlayer_Result

GetMediaPlayerItems

Returns a list of media player information about the players on the target.

Request

NameType

Response

NameType
result TargetHandler_GetMediaPlayerItems_Result

STRUCTS

PeerManager_GetControllerForTarget_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

PeerManager_SetAbsoluteVolumeHandler_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

PeerManager_RegisterTargetHandler_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

Controller_GetPlayerApplicationSettings_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault
current_settings PlayerApplicationSettings No default

Controller_SetPlayerApplicationSettings_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault
set_settings PlayerApplicationSettings No default

Controller_GetMediaAttributes_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault
attributes MediaAttributes No default

Controller_GetPlayStatus_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault
play_status PlayStatus No default

Controller_SetAbsoluteVolume_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault
set_volume uint8 No default

Controller_InformBatteryStatus_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

Controller_SetAddressedPlayer_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

Controller_SendCommand_Response

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescriptionDefault

TargetHandler_GetEventsSupported_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
notification_ids vector<NotificationEvent>[255] No default

TargetHandler_GetMediaAttributes_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
attributes MediaAttributes No default

TargetHandler_GetPlayStatus_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
play_status PlayStatus No default

TargetHandler_SendCommand_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault

TargetHandler_ListPlayerApplicationSettingAttributes_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
attributes vector<PlayerApplicationSettingAttributeId>[131] No default

TargetHandler_GetPlayerApplicationSettings_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
current_settings PlayerApplicationSettings No default

TargetHandler_SetPlayerApplicationSettings_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
set_settings PlayerApplicationSettings No default

TargetHandler_GetNotification_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
current_value Notification No default

TargetHandler_WatchNotification_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
new_value Notification No default

TargetHandler_SetAddressedPlayer_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault

TargetHandler_GetMediaPlayerItems_Response

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescriptionDefault
items vector<MediaPlayerItem>[16] No default

AddressedPlayerId

Defined in fuchsia.bluetooth.avrcp/types.fidl

The AddressedPlayerId is a unique identifier, assigned by AVRCP, for a media player. This ID is only used for AVRCP purposes, and should not be interpreted as an identification created, assigned, or used by MediaSession or any other API surfaces.

Defined in AVRCP 1.6, Section 6.10.2.1.

NameTypeDescriptionDefault
id uint16 No default

CustomAttributeValue

Defined in fuchsia.bluetooth.avrcp/types.fidl

The custom attribute value and its description.

NameTypeDescriptionDefault
description string[255] No default
value uint8 No default

ENUMS

ControllerError

Type: uint32

Defined in fuchsia.bluetooth.avrcp/types.fidl

Status codes for commands sent as the controller.

NameValueDescription
UNKOWN_FAILURE 1
TIMED_OUT 2
REMOTE_NOT_CONNECTED 3
COMMAND_NOT_IMPLEMENTED 4
COMMAND_REJECTED 5
COMMAND_UNEXPECTED 6
INVALID_ARGUMENTS 7
PACKET_ENCODING 8
PROTOCOL_ERROR 9
CONNECTION_ERROR 10
UNEXPECTED_RESPONSE 11

TargetPassthroughError

Type: uint32

Defined in fuchsia.bluetooth.avrcp/types.fidl

Status codes for passthrough responses received from the target.

NameValueDescription
COMMAND_NOT_IMPLEMENTED 1
COMMAND_REJECTED 2

TargetAvcError

Type: uint32

Defined in fuchsia.bluetooth.avrcp/types.fidl

Status codes for AVRCP specific AV/C commands. Defined in AVRCP 1.6.2 section 6.15.3, Table 6.49. Style note: named exactly as they are in Table 6.49 with the "REJECTED_" prefix.

NameValueDescription
REJECTED_INVALID_COMMAND 0
REJECTED_INVALID_PARAMETER 1
REJECTED_PARAMETER_CONTENT_ERROR 2
REJECTED_INTERNAL_ERROR 3
REJECTED_UID_CHANGED 5
REJECTED_INVALID_PLAYER_ID 17
REJECTED_NO_AVAILABLE_PLAYERS 21
REJECTED_ADDRESSED_PLAYER_CHANGED 22

NotificationEvent

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 section 6.7.2 (RegisterNotification) and Appendix H. Style note: named exactly as they are in the specification with the "EVENT_" prefix.

NameValueDescription
PLAYBACK_STATUS_CHANGED 1
TRACK_CHANGED 2
TRACK_REACHED_END 3
TRACK_REACHED_START 4
TRACK_POS_CHANGED 5
BATT_STATUS_CHANGED 6
SYSTEM_STATUS_CHANGED 7
PLAYER_APPLICATION_SETTING_CHANGED 8
NOW_PLAYING_CONTENT_CHANGED 9
AVAILABLE_PLAYERS_CHANGED 10
ADDRESSED_PLAYER_CHANGED 11
UIDS_CHANGED 12
VOLUME_CHANGED 13

SystemStatus

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 section 6.7.2 (RegisterNotification). Format for EVENT_SYSTEM_STATUS_CHANGED.

NameValueDescription
POWER_ON 0
POWER_OFF 1
UNPLUGGED 2

PlaybackStatus

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 section 6.7.2 (RegisterNotification). Format for EVENT_PLAYBACK_STATUS_CHANGED.

NameValueDescription
STOPPED 0
PLAYING 1
PAUSED 2
FWD_SEEK 3
REV_SEEK 4
ERROR 255

BatteryStatus

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 section 6.7.2 (RegisterNotification). Format for EVENT_BATT_STATUS_CHANGED. Same encoding also defined by 6.5.8 (InformBatteryStatusOfCT).

NameValueDescription
NORMAL 0
WARNING 1
CRITICAL 2
EXTERNAL 3
FULL_CHARGE 4
RESERVED 5

RepeatStatusMode

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix F (player application settings).

NameValueDescription
OFF 1
SINGLE_TRACK_REPEAT 2
ALL_TRACK_REPEAT 3
GROUP_REPEAT 4

ShuffleMode

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix F (player application settings).

NameValueDescription
OFF 1
ALL_TRACK_SHUFFLE 2
GROUP_SHUFFLE 3

ScanMode

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix F (player application settings).

NameValueDescription
OFF 1
ALL_TRACK_SCAN 2
GROUP_SCAN 3

Equalizer

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix F (player application settings).

NameValueDescription
OFF 1
ON 2

PlayerApplicationSettingAttributeId

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

0x80 - 0xFF is reserved for custom player application settings. Defined by AVRCP 1.6.2 Appendix F (player application settings).

NameValueDescription
EQUALIZER 1
REPEAT_STATUS_MODE 2
SHUFFLE_MODE 3
SCAN_MODE 4

AvcPanelCommand

Type: uint8

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AV\C Panel specification.

NameValueDescription
SELECT 0
UP 1
DOWN 2
LEFT 3
RIGHT 4
ROOT_MENU 9
CONTENTS_MENU 11
FAVORITE_MENU 12
EXIT 13
ON_DEMAND_MENU 14
APPS_MENU 15
KEY_0 32
KEY_1 33
KEY_2 34
KEY_3 35
KEY_4 36
KEY_5 37
KEY_6 38
KEY_7 39
KEY_8 40
KEY_9 41
DOT 42
ENTER 43
CHANNEL_UP 48
CHANNEL_DOWN 49
CHANNEL_PREVIOUS 50
INPUT_SELECT 52
INFO 53
HELP 54
PAGE_UP 55
PAGE_DOWN 56
LOCK 58
POWER 64
VOLUME_UP 65
VOLUME_DOWN 66
MUTE 67
PLAY 68
STOP 69
PAUSE 70
RECORD 71
REWIND 72
FAST_FORWARD 73
EJECT 74
FORWARD 75
BACKWARD 76
LIST 77
F1 113
F2 114
F3 115
F4 116
F5 117
F6 118
F7 119
F8 120
F9 121
RED 122
GREEN 123
BLUE 124
YELLOW 125

TABLES

Notification

Defined in fuchsia.bluetooth.avrcp/types.fidl

Event data from incoming target notifications. Defined by AVRCP 1.6.2 Sec 6.7.2.

OrdinalNameTypeDescription
1 status PlaybackStatus

EVENT_PLAYBACK_STATUS_CHANGED event data

2 track_id uint64

EVENT_TRACK_CHANGED event data

3 pos uint32

EVENT_TRACK_POS_CHANGED event data

4 battery_status BatteryStatus

EVENT_BATT_STATUS_CHANGED event data

5 system_status SystemStatus

EVENT_SYSTEM_STATUS_CHANGED event data

6 application_settings PlayerApplicationSettings

EVENT_PLAYER_APPLICATION_SETTINGS_CHANGED event data

7 player_id uint16

EVENT_ADDRESSED_PLAYER_CHANGED event data

8 volume uint8

EVENT_VOLUME_CHANGED event data

9 device_connected bool

CONNECTION_CHANGE event data

CustomPlayerApplicationSetting

Defined in fuchsia.bluetooth.avrcp/types.fidl

Specification allowed player application settings. Defined by AVRCP 1.6.2 Appendix F (player application settings).

OrdinalNameTypeDescription
1 attribute_id uint8

The attribute id for the custom setting. Must be between 0x80-0xFF, as defined in AVRCP 1.6.2 Appendix F.

2 attribute_name string[255]

The string descriptor of the custom attribute.

3 possible_values vector<CustomAttributeValue>[255]

The possible values the custom attribute can take.

4 current_value uint8

The current value that the custom setting is set to.

PlayerApplicationSettings

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix F (player application settings).

OrdinalNameTypeDescription
1 equalizer Equalizer

The equalizer status of the remote target.

2 repeat_status_mode RepeatStatusMode

The repeat mode status of the remote target.

3 shuffle_mode ShuffleMode

The shuffle mode status of the remote target.

4 scan_mode ScanMode

The scan mode status of the remote target.

5 custom_settings vector<CustomPlayerApplicationSetting>[127]

Custom settings that are specification allowed.

MediaAttributes

Defined in fuchsia.bluetooth.avrcp/types.fidl

Defined by AVRCP 1.6.2 Appendix E (media attributes).

OrdinalNameTypeDescription
1 title string[65535]

The title, song name, or content description.

2 artist_name string[65535]

The artist, performer, or group.

3 album_name string[65535]

The title of the source of media.

4 track_number string[65535]

The order number of the media on its original recording.

5 total_number_of_tracks string[65535]

The total number of tracks in the media.

6 genre string[65535]

The category of composition of the media,

7 playing_time string[65535]

The length of the media in milliseconds (ms).

PlayStatus

Defined in fuchsia.bluetooth.avrcp/types.fidl

Status of currently playing media on the TG. Defined by AVRCP 1.6.2 section 6.7.1, Table 6.29.

OrdinalNameTypeDescription
1 song_length uint32

The total length of the currently playing media, in milliseconds. Optional, if the TG does not support song length.

2 song_position uint32

The current position of the playing media, in milliseconds elapsed. Optional, if the TG does not support song position.

3 playback_status PlaybackStatus

The playback status of the currently playing media. Mandatory, the TG must respond with a PlaybackStatus.

MediaPlayerItem

Defined in fuchsia.bluetooth.avrcp/types.fidl

Response data for the browseable items associated with a media player. Defined by AVRCP 1.6.2 section 6.10.2.1.

OrdinalNameTypeDescription
1 player_id uint16
2 major_type MajorPlayerType
3 sub_type PlayerSubType
4 playback_status PlaybackStatus
5 displayable_name string[255]

UNIONS

PeerManager_GetControllerForTarget_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response PeerManager_GetControllerForTarget_Response
err zx/status

PeerManager_SetAbsoluteVolumeHandler_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response PeerManager_SetAbsoluteVolumeHandler_Response
err zx/status

PeerManager_RegisterTargetHandler_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response PeerManager_RegisterTargetHandler_Response
err zx/status

Controller_GetPlayerApplicationSettings_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_GetPlayerApplicationSettings_Response
err ControllerError

Controller_SetPlayerApplicationSettings_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_SetPlayerApplicationSettings_Response
err ControllerError

Controller_GetMediaAttributes_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_GetMediaAttributes_Response
err ControllerError

Controller_GetPlayStatus_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_GetPlayStatus_Response
err ControllerError

Controller_SetAbsoluteVolume_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_SetAbsoluteVolume_Response
err ControllerError

Controller_InformBatteryStatus_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_InformBatteryStatus_Response
err ControllerError

Controller_SetAddressedPlayer_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_SetAddressedPlayer_Response
err ControllerError

Controller_SendCommand_Result

Defined in fuchsia.bluetooth.avrcp/controller.fidl

NameTypeDescription
response Controller_SendCommand_Response
err ControllerError

TargetHandler_GetEventsSupported_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetEventsSupported_Response
err TargetAvcError

TargetHandler_GetMediaAttributes_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetMediaAttributes_Response
err TargetAvcError

TargetHandler_GetPlayStatus_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetPlayStatus_Response
err TargetAvcError

TargetHandler_SendCommand_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_SendCommand_Response
err TargetPassthroughError

TargetHandler_ListPlayerApplicationSettingAttributes_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_ListPlayerApplicationSettingAttributes_Response
err TargetAvcError

TargetHandler_GetPlayerApplicationSettings_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetPlayerApplicationSettings_Response
err TargetAvcError

TargetHandler_SetPlayerApplicationSettings_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_SetPlayerApplicationSettings_Response
err TargetAvcError

TargetHandler_GetNotification_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetNotification_Response
err TargetAvcError

TargetHandler_WatchNotification_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_WatchNotification_Response
err TargetAvcError

TargetHandler_SetAddressedPlayer_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_SetAddressedPlayer_Response
err TargetAvcError

TargetHandler_GetMediaPlayerItems_Result

Defined in fuchsia.bluetooth.avrcp/target.fidl

NameTypeDescription
response TargetHandler_GetMediaPlayerItems_Response
err TargetAvcError

BITS

Notifications

Type: uint32

NameValueDescription
PLAYBACK_STATUS 1

AVRCP EVENT_PLAYBACK_STATUS_CHANGED Notification

TRACK 2

AVRCP EVENT_TRACK_CHANGED Notification

TRACK_POS 4

AVRCP EVENT_TRACK_POS_CHANGED Notification

BATT_STATUS 8

AVRCP EVENT_BATT_STATUS_CHANGED Notification

SYSTEM_STATUS 16

AVRCP EVENT_SYSTEM_STATUS_CHANGED Notification

PLAYER_APPLICATION_SETTINGS 32

AVRCP EVENT_PLAYER_APPLICATION_SETTINGS_CHANGED Notification

ADDRESSED_PLAYER 64

AVRCP EVENT_ADDRESSED_PLAYER_CHANGED Notification

VOLUME 128

AVRCP EVENT_VOLUME_CHANGED Notification

CONNECTION 65536

Internal connection change event.

MajorPlayerType

Type: uint8

NameValueDescription
AUDIO 1
VIDEO 2
BROADCASTING_AUDIO 4
BROADCASTING_VIDEO 8

PlayerSubType

Type: uint32

NameValueDescription
AUDIO_BOOK 1
PODCAST 2

CONSTANTS

NameValueTypeDescription
MAX_NOTIFICATIONS 255 uint8

The maximum number of Notification Event IDs that can be supported by the TG. 0x0E to 0xFF are reserved for future use. Defined by AVRCP 1.6.2 Appendix H.

MAX_CUSTOM_ATTRIBUTES 127 uint64

The maximum number of custom attributes that can be used. Defined by AVRCP 1.6.2 Appendix F.

MAX_ATTRIBUTE_VALUES 255 uint64

The maximum number of possible values an attribute can take on. Defined by AVRCP 1.6.2 Sec 6.5.2

MAX_ATTRIBUTES 131 uint64

The total number of attributes that can be set. The custom attributes + the 4 defined attributes, PlayerApplicationSettingAttributeId. 4 + 127 = 131.

MAX_ATTRIBUTE_VALUE_LENGTH 65535 uint64

The maximum length of an attribute value in the media attributes. Defined by AVRCP 1.6.2 Sec 6.6.1.

MAX_MEDIA_PLAYER_ITEMS 16 uint16

The maximum number of MediaPlayerItems that can be returned from a call to GetMediaPlayerItems. This value is arbitrary and is meant to limit the number of items that can be returned. AVRCP 1.6.2, Section 6.10.4.2.2 defines the Number of Items parameter as a uint16.