mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-23 12:14:26 +08:00
1a681aa014
The cover art image handle is available in the metadata of the track when the OBEX BIP session is connected to the PSM port provided in AVRCP SDP record and available as org.bluez.MediaPlayer property. This service allows to get the thumbnail.
75 lines
1.4 KiB
ReStructuredText
75 lines
1.4 KiB
ReStructuredText
=====================
|
|
org.bluez.obex.Client
|
|
=====================
|
|
|
|
-----------------------------------------
|
|
BlueZ D-Bus OBEX Client API documentation
|
|
-----------------------------------------
|
|
|
|
:Version: BlueZ
|
|
:Date: October 2023
|
|
:Manual section: 5
|
|
:Manual group: Linux System Administration
|
|
|
|
Interface
|
|
=========
|
|
|
|
:Service: org.bluez.obex
|
|
:Interface: org.bluez.obex.Client1
|
|
:Object path: /org/bluez/obex
|
|
|
|
Methods
|
|
-------
|
|
|
|
object CreateSession(string destination, dict args)
|
|
```````````````````````````````````````````````````
|
|
|
|
Connects to the destination address and then proceed to create an OBEX
|
|
session object which implements **org.bluez.obex.Session(5)** interface.
|
|
|
|
The last parameter is a dictionary to hold optional or type-specific
|
|
parameters.
|
|
|
|
Possible args values:
|
|
|
|
:string Target:
|
|
|
|
Type of session to be created.
|
|
|
|
Possible values:
|
|
|
|
:"ftp":
|
|
:"map":
|
|
:"opp":
|
|
:"pbap":
|
|
:"sync":
|
|
:"bip-avrcp":
|
|
|
|
:string Source:
|
|
|
|
Local address to be used.
|
|
|
|
:byte Channel:
|
|
|
|
Channel to be used.
|
|
|
|
:uint16 PSM:
|
|
|
|
L2CAP PSM to be used.
|
|
|
|
Possible errors:
|
|
|
|
:org.bluez.obex.Error.InvalidArguments:
|
|
:org.bluez.obex.Error.Failed:
|
|
|
|
void RemoveSession(object session)
|
|
``````````````````````````````````
|
|
|
|
Disconnects and removes session previously created by
|
|
**CreateSession()** aborting any pending transfers.
|
|
|
|
Possible errors:
|
|
|
|
:org.bluez.obex.Error.InvalidArguments:
|
|
:org.bluez.obex.Error.NotAuthorized:
|