Blob: org.bluez.MediaTransport.rst

Blob id: 3d1e8c5b5a40b68f244d01a420829a06141e0c1d

Size: 6.6 KB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
========================
org.bluez.MediaTransport
========================

--------------------------------------------
BlueZ D-Bus MediaTransport API documentation
--------------------------------------------

:Version: BlueZ
:Date: July 2024
:Manual section: 5
:Manual group: Linux System Administration

Interface
=========

:Service:	org.bluez
:Interface:	org.bluez.MediaTransport1
:Object path:	[variable prefix]/{hci0,hci1,...}/dev_{BDADDR}/fd#

Methods
-------

fd, uint16, uint16 Acquire()
````````````````````````````

Acquire transport file descriptor and the MTU for read and write respectively.

Possible Errors:

:org.bluez.Error.NotAuthorized:
:org.bluez.Error.Failed:

fd, uint16, uint16 TryAcquire()
```````````````````````````````

Acquire transport file descriptor only if the transport is in "pending" state at
the time the message is received by BlueZ. Otherwise no request will be sent to
the remote device and the function will just fail with
**org.bluez.Error.NotAvailable**.

Possible Errors:

:org.bluez.Error.NotAuthorized:
:org.bluez.Error.Failed:
:org.bluez.Error.NotAvailable:

void Release()
``````````````

Releases file descriptor.

void Select()
`````````````

Applicable only for transports created by a broadcast sink. This moves the
transport from "idle" to "broadcasting".

This allows callers to select which BISes he wishes to sync to via a 2 step
process:

1. the user calls the method, changing the transport's state to broadcasting

2. the audio server detects that the transport is in the 'broadcasting' state
   and automatically acquires it

Possible Errors:

:org.bluez.Error.NotAuthorized:

void Unselect()
```````````````

Applicable only for transports created by a broadcast sink. This moves the
transport from "broadcasting" or "active" to "idle".

This allows callers to terminate the sync to a BIS to via a 2 step process:

1. the user calls this method, changing the transport's state to idle

2. the audio server detects this event and releases the transport

Possible Errors:

:org.bluez.Error.NotAuthorized:

Properties
----------

object Device [readonly]
````````````````````````

Device object which the transport is connected to.

string UUID [readonly]
``````````````````````

UUID of the profile which the transport is for.

byte Codec [readonly]
`````````````````````

Assigned number of codec that the transport support.

The values should match the profile specification which is indicated by the
UUID.

array{byte} Configuration [readonly]
````````````````````````````````````

Configuration blob, it is used as it is so the size and byte order must match.

string State [readonly]
```````````````````````

Indicates the state of the transport. Possible values are:

:"idle": not streaming
:"pending": streaming but not acquired
:"broadcasting":
	streaming but not acquired, applicable only for transports created by a
	broadcast sink
:"active": streaming and acquired

uint16 Delay [readwrite, optional]
``````````````````````````````````

Transport delay in 1/10 of millisecond, this property is only writeable when the
transport corresponds to a sink endpoint and it was acquired by the sender.

uint16 Volume [readwrite, optional]
```````````````````````````````````

Indicates volume level of the transport, this property is only writeable
when the transport was acquired by the sender.

Possible Values:

:0-127 (A2DP):
:0-255 (BAP):

object Endpoint [readonly, optional, experimental]
``````````````````````````````````````````````````

Endpoint object which the transport is associated with.

uint32 Location [readonly, ISO only, experimental]
``````````````````````````````````````````````````

Indicates transport Audio Location.

array{byte} Metadata [readwrite, ISO Only, experimental]
````````````````````````````````````````````````````````

Indicates transport Metadata.

array{object} Links [readonly, optional, CIS only, experimental]
````````````````````````````````````````````````````````````````

Linked transport objects which the transport is associated with.

array{object} Links [readwrite, BIS only, experimental]
```````````````````````````````````````````````````````

For a Broadcast Sink, the BIG sync procedure requires all desired streams to be
enumerated from the start and it cannot be later reconfigured by adding or
removing BISes.

To avoid terminating and recreating the BIG sync every time a new transport is
selected for acquire, all transports selected via **Select** need to be linked
together.

When the first transport is acquired via Transport.Acquire, all links are
included in the BIG sync command.

An acquired transport will create and set fds for all its links. Then, each link
needs to be acquired separately, to get the fd and start receiving audio.

dict QoS [readwrite, optional, ISO only, experimental]
``````````````````````````````````````````````````````

Only present when QoS is configured.

Possible values for Unicast:

:byte CIG:

	Indicates configured CIG.

	Possible values:

	:0x00 - 0xef:

		Valid ID range.

	:0xff:

		Auto allocate.

:byte CIS:

	Indicates configured CIS.

	Possible values:

	:0x00 - 0xef:

	Valid ID range.

	:0xff:

		Auto allocate.

:byte Framing:

	Indicates configured framing.

	Possible values:

	:0x00:

		Unframed.

	:0x01:

		Framed.

:uint32 PresentationDelay:

	Indicates configured transport presentation delay (us).

:byte TargetLatency:

	Indicates the requested target latency.

	Possible values:

	:0x01:

		Low Latency.

	:0x02:

		Balanced Latency/Reliability.

	:0x03:

		High Reliability.

Possible values for Broadcast:

:byte BIG:

	Indicates configured QoS BIG.

:byte BIS:

	Indicates configured BIS.

:byte SyncFactor:

	Indicates configured broadcast sync factor.

:byte Packing:

	Indicates configured packing.

:byte Framing:

	Indicates configured framing.

:array{byte} BCode:

	Indicates the string used for encryption/decryption.

:byte encryption:

	Indicates if the stream is encrypted.

:byte Options:

	Indicates configured broadcast options.

:uint16 Skip:

	Indicates configured broadcast skip.

:byte SyncTimeout:

	Indicates configured broadcast sync timeout.

:byte SyncType:

	Indicates configured broadcast sync CTE type.

:byte MSE:

	Indicates configured broadcast MSE.

:uint16 Timeout:

	Indicates configured broadcast timeout.

Possible values for both Unicast and Broadcast:

:uint32 Interval:

	Indicates configured ISO interval (us).

:uint16 Latency:

	Indicates configured transport latency (ms).

:uint16 SDU:

	Indicates configured maximum SDU.

:byte PHY:

	Indicates configured PHY.

	Possible values:

	:bit 0:

		LE 1M

	:bit 1:

		LE 2M

	:bit 2:

		LE Coded

:byte Retransmissions:

	Indicates configured retransmissions.