|
|
|
Proposed/revised API for org.bluez.audio.control (AVRCP) | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
org.bluez.audio.Control interface
This interface is available for remote devices which implement support for an
AVRCP controller and target.
Object path(s) /org/bluez/audio/device*
Methods:
dict GetProperties()
GHashTable with named properties and variant values.
boolean IsConnected()
Returns TRUE if connected with the remote device.
void ConnectResponse(boolean response)
Respond to ConnectedRequested from remote device.
Respond TRUE if granting connection request.
void Disconnect()
Disconnect from remote device.
boolean SendPassthrough(avc_operation_id key, boolean state,
uint16 sizeof_op_data, const void * op_data)
Called to send Passthrough commands.
boolean SendVendorDependent(uint16 sizeof_op_data, const void * op_data)
Called to send VendorDependent commands, other than Metadata.
void * FetchVendorDependent(uint16 sizeof_op_data)
Called to retrieve VendorDependent commands, other than Metadata.
void SendMetadata(uint8 pdu_id, dict meta_data)
Called to send Metadata commands (a subset of the
VendorDependent message). Multiple key/element pairs.
Signals:
Connected()
Sent when a successful connection has been made to the remote device.
Disconnected()
Sent when a connection to the remote device has been disconnected.
ConnectRequested(string address)
Sent when a remote device wishes to connect. Return value is BT address
of connecting device (might be Device path instead...)
DisconnectRequested()
Sent when a connected remote device wishes to disconnect.
PassthroughReceived(avc_operation_id key, boolean state,
uint16 sizeof_op_data, const void * op_data)
Called when Passthrough command is received from connected device.
VendorDependentReceived(uint16 sizeof_op_data, const void * op_data)
Called when VendorDependent message is received from connected device
(except for Metadata).
MetadataReceived(dict metadata)
Called when Metadata is received from connected device. May be multiple
meta attribute/element pairs.
Properties:
string Address [readonly]
Bluetooth Device Address of the connected device.
string Name [readonly]
The Bluetooth "friendly name" from the connected device.
uint8 SubUnitID [readonly]
The three-bit Subunit ID from the connected device (per the spec).
uint8 SubUnitType [readonly]
The five-bit Subunit Type from the connected device (per the spec).
array{uint} CompanyIDs [readonly]
List of three-byte Company IDs (OUI) from the connected device.
array{uint8} Capabilities [readonly]
List of Capabilities provided by the connected device.
Note that many of the items supporting AVRCP and the Metadata Extension are essentially
fixed from the standpoint of the application running in the Linux box. To simplify the
API, these are best handled by setting them up statically in the audio.conf file.
A list of these attributes and possible settings will be submitted in the very near future.Attachment:
audio.conf
Description: Binary data
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Bluez-devel mailing list Bluez-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/bluez-devel
![]() |
![]() |