1 BlueZ D-Bus Media API description
2 *********************************
8 Interface org.bluez.Media
9 Object path [variable prefix]/{hci0,hci1,...}
11 Methods void RegisterEndpoint(object endpoint, dict properties)
13 Register a local end point to sender, the sender can
14 register as many end points as it likes.
16 Note: If the sender disconnects the end points are
17 automatically unregistered.
23 UUID of the profile which the endpoint
28 Assigned number of codec that the
29 endpoint implements. The values should
30 match the profile specification which
31 is indicated by the UUID.
33 array{byte} Capabilities:
35 Capabilities blob, it is used as it is
36 so the size and byte order must match.
38 Possible Errors: org.bluez.Error.InvalidArguments
39 org.bluez.Error.NotSupported - emitted
40 when interface for the end-point is
43 void UnregisterEndpoint(object endpoint)
45 Unregister sender end point.
47 void RegisterPlayer(object player, dict properties,
50 Register a media player object to sender, the sender
51 can register as many objets as it likes.
53 Note: If the sender disconnects its objects are
54 automatically unregistered.
60 Possible values: "off" or "on"
64 Possible values: "off", "singletrack",
65 "alltracks" or "group"
69 Possible values: "off", "alltracks" or
74 Possible values: "off", "alltracks" or
79 Possible values: "playing", "stopped",
87 Playback position in milliseconds
107 uint32 NumberOfTracks:
109 Number of tracks in total
117 Track duration in milliseconds
119 Possible Errors: org.bluez.Error.InvalidArguments
120 org.bluez.Error.NotSupported
122 void UnregisterPlayer(object player)
124 Unregister sender media player.
126 MediaPlayer hierarchy
127 =====================
130 Interface org.bluez.MediaPlayer
131 Object path freely definable
133 Methods void SetProperty(string property, variant value)
135 Changes the value of the specified property. Only
136 properties that are listed as read-write can be changed.
138 On success this will emit a PropertyChanged signal.
142 This method gets called when the service daemon
143 unregisters the player which can then perform
144 cleanup tasks. There is no need to unregister the
145 player, because when this method gets called it has
146 already been unregistered.
148 Signals PropertyChanged(string setting, variant value)
150 This signal indicates a changed value of the given
153 TrackChanged(dict metadata)
155 This signal indicates that current track has changed.
156 All available metadata for the new track shall be set
157 at once in the metadata argument. Metadata cannot be
158 updated in parts, otherwise it will be interpreted as
159 multiple track changes.
179 uint32 NumberOfTracks:
181 Number of tracks in total
189 Track duration in milliseconds
191 Properties string Equalizer [readwrite]
193 Possible values: "off" or "on"
195 string Repeat [readwrite]
197 Possible values: "off", "singletrack", "alltracks" or
200 string Shuffle [readwrite]
202 Possible values: "off", "alltracks" or "group"
204 string Scan [readwrite]
206 Possible values: "off", "alltracks" or "group"
208 string Status [readonly]
210 Possible status: "playing", "stopped", "paused",
211 "forward-seek", "reverse-seek" or
214 uint32 Position [readonly]
216 Playback position in milliseconds. Changing the
217 position may generate additional events that will be
218 sent to the remote device. When position is 0 it means
219 the track is starting and when it's greater than or
220 equal to track's duration the track has ended. Note
221 that even if duration is not available in metadata it's
222 possible to signal its end by setting position to the
223 maximum uint32 value.
225 MediaEndpoint hierarchy
226 =======================
229 Interface org.bluez.MediaEndpoint
230 Object path freely definable
232 Methods void SetConfiguration(object transport, dict properties)
234 Set configuration for the transport.
236 array{byte} SelectConfiguration(array{byte} capabilities)
238 Select preferable configuration from the supported
241 Returns a configuration which can be used to setup
244 Note: There is no need to cache the selected
245 configuration since on success the configuration is
246 send back as parameter of SetConfiguration.
248 void ClearConfiguration(object transport)
250 Clear transport configuration.
254 This method gets called when the service daemon
255 unregisters the endpoint. An endpoint can use it to do
256 cleanup tasks. There is no need to unregister the
257 endpoint, because when this method gets called it has
258 already been unregistered.
260 MediaTransport hierarchy
261 ========================
264 Interface org.bluez.MediaTransport
265 Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/fdX
267 Methods dict GetProperties()
269 Returns all properties for the interface. See the
270 properties section for available properties.
272 fd, uint16, uint16 Acquire(string accesstype)
274 Acquire transport file descriptor and the MTU for read
275 and write respectively.
279 "r" : Read only access
281 "w" : Write only access
283 "rw": Read and write access
285 void Release(string accesstype)
287 Releases file descriptor.
289 void SetProperty(string name, variant value)
291 Changes the value of the specified property. Only
292 properties that are listed a read-write can be changed.
294 On success this will emit a PropertyChanged signal.
296 Signals void PropertyChanged(string name, variant value)
298 This signal indicates a changed value of the given
301 Properties object Device [readonly]
303 Device object which the transport is connected to.
305 string UUID [readonly]
307 UUID of the profile which the transport is for.
309 byte Codec [readonly]
311 Assigned number of codec that the transport support.
312 The values should match the profile specification which
313 is indicated by the UUID.
315 array{byte} Configuration [readonly]
317 Configuration blob, it is used as it is so the size and
318 byte order must match.
320 uint16 Delay [readwrite]
322 Optional. Transport delay in 1/10 of millisecond, this
323 property is only writeable when the transport was
324 acquired by the sender.
326 boolean NREC [readwrite]
328 Optional. Indicates if echo cancelling and noise
329 reduction functions are active in the transport, this
330 property is only writeable when the transport was
331 acquired by the sender.
333 boolean InbandRingtone [readwrite]
335 Optional. Indicates if the transport support sending
336 ringtones, this property is only writeable when the
337 transport was acquired by the sender.
339 string Routing [readonly]
341 Optional. Indicates where is the transport being routed
343 Possible Values: "HCI" or "PCM"
345 uint16 Volume [readwrite]
347 Optional. Indicates volume level of the transport,
348 this property is only writeable when the transport was
349 acquired by the sender.
351 Possible Values: 0-127