org.bluez.MediaItem(5)

๐ŸŽต org.bluez.MediaItem โ€” BlueZ D-Bus MediaItem API ๐Ÿ’…

okay bestie, this is the org.bluez.MediaItem(5) page from the Linux System Administration manual, and it's literally the BlueZ D-Bus MediaItem API documentation. It's giving Bluetooth media item main character energy ๐Ÿฆ‹


๐ŸŒธ NAME ๐ŸŒธ

org.bluez.MediaItem โ€” BlueZ D-Bus MediaItem API documentation. Periodt.


๐Ÿฆ‹ 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)
  • Used by โ€” bluetoothctl-player(1)

๐ŸŽถ METHODS ๐ŸŽถ

๐ŸŽฎ void Play()

Play item. That's the whole vibe โœจ

Possible Errors:

  • org.bluez.Error.NotSupported
  • org.bluez.Error.Failed

Examples:

bluetoothctl
[player] > play [item]

๐ŸŽฎ void AddtoNowPlaying()

Add item to now playing list. Lowkey iconic ๐ŸŽ€

Possible Errors:

  • org.bluez.Error.NotSupported
  • org.bluez.Error.Failed

Examples:

bluetoothctl
[player] > queue <item>

๐Ÿ‘‘ 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".

๐Ÿ’– signed, sealed, delivered by BlueZ in September 2023 โ€” this was org.bluez.MediaItem(5), mwah ๐Ÿ’…

๐Ÿ“ฆ where this page comes from