org.bluez.MediaFolder๐Ÿ”—

BlueZ D-Bus MediaFolder 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.MediaFolder1

Object path:

freely definable (Target role) [variable prefix]/{hci0,hci1,โ€ฆ}/dev_{BDRADDR}/player# (Controller role)

Used by:

bluetoothctl-player(1)

Methods๐Ÿ”—

object Search(string value, dict filter)๐Ÿ”—

Return a folder object containing the search result.

To list the items found use the folder object returned and pass to ChangeFolder.

Possible Errors:

org.bluez.Error.NotSupported:

org.bluez.Error.Failed:

Examples:

bluetoothctl:

[player] > search <string>

array{objects, properties} ListItems(dict filter)๐Ÿ”—

Return a list of items found

Possible Errors:

org.bluez.Error.InvalidArguments:

org.bluez.Error.NotSupported:

org.bluez.Error.Failed:

Examples:

bluetoothctl:

[player] > list-items [start] [end]

void ChangeFolder(object folder)๐Ÿ”—

Change current folder.

Note: By changing folder the items of previous folder might be destroyed and have to be listed again, the exception is NowPlaying folder which should be always present while the player is active.

Possible Errors:

org.bluez.Error.InvalidArguments:

org.bluez.Error.NotSupported:

org.bluez.Error.Failed:

Examples:

bluetoothctl:

[player] > change-folder <item>

Properties๐Ÿ”—

uint32 NumberOfItems [readonly]๐Ÿ”—

Number of items in the folder

string Name [readonly]๐Ÿ”—

Folder name:

Possible values:

โ€œ/Filesystem/โ€ฆโ€:

Filesystem scope

โ€œ/NowPlaying/โ€ฆโ€:

NowPlaying scope

Note: /NowPlaying folder might not be listed if player is stopped, folders created by Search are virtual so once another Search is perform or the folder is changed using ChangeFolder it will no longer be listed.

Filters๐Ÿ”—

uint32 Start:

Offset of the first item.

Default value: 0

uint32 End:

Offset of the last item.

Default value: NumbeOfItems

array{string} Attributes:

Item properties that should be included in the list.

Possible Values:

โ€œtitleโ€, โ€œartistโ€, โ€œalbumโ€, โ€œgenreโ€, โ€œnumber-of-tracksโ€, โ€œnumberโ€, โ€œdurationโ€

Default Value: All