Blob: org.bluez.MediaItem.rst

Blob id: 6e7e9adf71457a435cfb2ccecb00dfb880286bd6

Size: 2.1 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
===================
org.bluez.MediaItem
===================

---------------------------------------
BlueZ D-Bus MediaItem API documentation
---------------------------------------

:Version: BlueZ
:Date: September 2023
:Manual section: 5
:Manual group: Linux System Administration

Interface
=========

:Service:	unique name (Target role)
		org.bluez (Controller role)
:Interface:	org.bluez.MediaItem1
:Object path:	freely definable (Target role)
		[variable
		prefix]/{hci0,hci1,...}/dev_{BDRADDR}/player#/item# (Controller role)

Methods
-------

void Play()
```````````

Play item

Possible Errors:

:org.bluez.Error.NotSupported:
:org.bluez.Error.Failed:

void AddtoNowPlaying()
``````````````````````

Add item to now playing list

Possible Errors:

:org.bluez.Error.NotSupported:
:org.bluez.Error.Failed:

Properties
----------

object Player [readonly]
````````````````````````

Player object path the item belongs to

string Name [readonly]
``````````````````````

Item displayable name

string Type [readonly]
``````````````````````

Item type

Possible values:

:"video":
:"audio":
:"folder":

string FolderType [readonly, optional]
``````````````````````````````````````

Folder type.

Available if property Type is "Folder"

Possible values:

:"mixed":
:"titles":
:"albums":
:"artists":

boolean Playable [readonly, optional]
`````````````````````````````````````

Indicates if the item can be played

Available if property Type is "folder"

dict Metadata [readonly]
````````````````````````

Item metadata.

Possible values:

:string Title:

	Item title name

	Available if property Type is "audio" or "video"

:string Artist:

	Item artist name

	Available if property Type is "audio" or "video"

:string Album:

	Item album name

	Available if property Type is "audio" or "video"

:string Genre:

	Item genre name

	Available if property Type is "audio" or "video"

:uint32 NumberOfTracks:

	Item album number of tracks in total

	Available if property Type is "audio" or "video"

:uint32 Number:

	Item album number

	Available if property Type is "audio" or "video"

:uint32 Duration:

	Item duration in milliseconds

	Available if property Type is "audio" or "video"