BLUETOOTHCTL-PLAYER(1)

๐Ÿ’– bluetoothctl-player ๐Ÿ’–

okay so this is the Media Player Submenu of bluetoothctl, straight out of the Linux System Administration section of the manual. it's the little corner of bluetoothctl where you control media playback, and it does that through the org.bluez.MediaPlayer(5) interface. yes bestie, D-Bus, we love her. ๐ŸŽ€


โœจ NAME โœจ

bluetoothctl-player โ€” the Media Player Submenu, your personal aux-cord main character moment. ๐ŸŽง


๐ŸŒธ SYNOPSIS ๐ŸŒธ

bluetoothctl [--options] [player.commands]

real talk: this submenu is the one that controls media playback using the org.bluez.MediaPlayer(5) interface. that's the whole vibe. ๐Ÿ’…


๐Ÿฆ‹ MEDIA PLAYER COMMANDS ๐Ÿฆ‹

โญ list

Lists all the available players. that's it, that's the tweet.

Usage

> list

Example โ€” display all available media players (local and remote, both of them, no crumbs):

> list

โญ show

Shows you the player information. nosy in a cute way. ๐Ÿ‘€

Usage

> show [player]

Uses the org.bluez.MediaPlayer(5) properties.

  • [player] โ€” the media player path or identifier. it's optional, and if you omit it, it shows the currently selected player. lowkey convenient.

Example โ€” show info for the currently selected player:

> show

Example โ€” show remote player information:

> show /org/bluez/hci0/dev_00_11_22_33_44_55/player0

โญ select

Picks the default player. choose your fighter. ๐Ÿ‘‘

Usage

> select <player>
  • <player> โ€” the media player path or identifier you want to select as default.

Example โ€” select a remote Bluetooth media player:

> select /org/bluez/hci0/dev_00_11_22_33_44_55/player0

โญ play

Starts playback. press play, the vibes begin. โ–ถ๏ธ

Usage

> play [item]

Uses the org.bluez.MediaPlayer(5) method Play.

  • [item] โ€” media item path to play. optional; if you leave it out it starts playback of the current item.

Example โ€” start playback on the current player:

> play

Example โ€” play a specific item from the media browser:

> play /org/bluez/item/1

Example โ€” play a named track item:

> play /org/bluez/item/track_001

Example โ€” play a track from a specific album folder:

> play /org/bluez/item/album_rock/track_05

โญ pause

Pauses playback. sometimes we need a lil breather, and that's valid. ๐Ÿ˜Œ

Usage

> pause

Uses the org.bluez.MediaPlayer(5) method Pause.

Example โ€” pause the current playback:

> pause

โญ stop

Stops playback. full stop, no notes. ๐Ÿ›‘

Usage

> stop

Uses the org.bluez.MediaPlayer(5) method Stop.

Example โ€” stop the current playback:

> stop

โญ next

Jumps to the next item. skip, queen. โญ๏ธ

Usage

> next

Uses the org.bluez.MediaPlayer(5) method Next.

Example โ€” skip to the next track:

> next

โญ previous

Jumps back to the previous item. we're feeling nostalgic. โฎ๏ธ

Usage

> previous

Uses the org.bluez.MediaPlayer(5) method Previous.

Example โ€” go back to the previous track:

> previous

โญ fast-forward

Fast forwards playback. zoom zoom. โฉ

Usage

> fast-forward

Uses the org.bluez.MediaPlayer(5) method FastForward.

Example โ€” enable fast forward mode:

> fast-forward

โญ rewind

Rewinds playback. rewind time, iconic behaviour honestly. โช

Usage

> rewind

Uses the org.bluez.MediaPlayer(5) method Rewind.

Example โ€” enable rewind mode:

> rewind

โญ equalizer

Enables or disables the equalizer. bass go brrr. ๐ŸŽš๏ธ

Usage

> equalizer <on/off>

Uses the org.bluez.MediaPlayer(5) property Equalizer.

  • <on/off> โ€” enable (on) or disable (off) the equalizer.

Example โ€” enable the equalizer:

> equalizer on

Example โ€” disable the equalizer:

> equalizer off

โญ repeat

Sets the repeat mode. run it back. ๐Ÿ”

Usage

> repeat <singletrack/alltrack/group/off>

Uses the org.bluez.MediaPlayer(5) property Repeat.

  • <singletrack/alltrack/group/off> โ€” set the repeat mode:
    • singletrack โ€” the current track
    • alltrack โ€” all the tracks
    • group โ€” the current group/album
    • off โ€” no repeat

Example โ€” disable repeat mode:

> repeat off

Example โ€” repeat the current track:

> repeat singletrack

Example โ€” repeat the entire playlist/queue:

> repeat alltrack

Example โ€” repeat the current group/album:

> repeat group

โญ shuffle

Sets the shuffle mode. chaos, but make it curated. ๐Ÿ”€

Usage

> shuffle <alltracks/group/off>

Uses the org.bluez.MediaPlayer(5) property Shuffle.

  • <alltracks/group/off> โ€” set the shuffle mode:
    • alltracks โ€” shuffle all tracks
    • group โ€” shuffle within the current group
    • off โ€” no shuffle

Example โ€” disable shuffle mode:

> shuffle off

Example โ€” shuffle all tracks in the playlist:

> shuffle alltracks

Example โ€” shuffle tracks within the current group:

> shuffle group

โญ scan

Sets the scan mode. speedrun through your library. ๐Ÿ“ก

Usage

> scan <alltracks/group/off>

Uses the org.bluez.MediaPlayer(5) property Scan.

  • <alltracks/group/off> โ€” set the scan mode:
    • alltracks โ€” scan through all tracks
    • group โ€” scan within the current group
    • off โ€” no scan

Example โ€” disable scan mode:

> scan off

Example โ€” scan through all tracks:

> scan alltracks

Example โ€” scan through the current group only:

> scan group

โญ change-folder

Changes the current folder. little navigation moment. ๐Ÿ“

Usage

> change-folder <item>
  • <item> โ€” folder path to navigate to, or .. to go up one directory level. yes, it's the same .. as the shell, we been knew.

Example โ€” navigate to the Albums folder:

> change-folder /org/bluez/item/Albums

Example โ€” navigate to the Artists folder:

> change-folder /org/bluez/item/Artists

Example โ€” navigate to the Playlists folder:

> change-folder /org/bluez/item/Playlists

Example โ€” go up one directory level:

> change-folder ..

โญ list-items

Lists the items of the current folder. window shopping. ๐Ÿ›๏ธ

Usage

> list-items [start] [end]
  • [start] โ€” starting index for the item list. optional, defaults to 0.
  • [end] โ€” ending index for the item list. optional; if you omit it, it lists all items from start.

Example โ€” list all items in the current folder:

> list-items

Example โ€” list the first 10 items (0-10):

> list-items 0 10

Example โ€” list items 5 through 15:

> list-items 5 15

Example โ€” list items 10 through 20:

> list-items 10 20

Example โ€” list the first 50 items:

> list-items 0 50

Searches for items containing a string. detective era. ๐Ÿ”

Usage

> search <string>
  • <string> โ€” the search term to find matching items (songs, albums, artists, etc.)

Example โ€” search for Beatles songs/albums:

> search "The Beatles"

Example โ€” search for items containing rock:

> search "rock"

Example โ€” search for items from 2023:

> search "2023"

Example โ€” search for playlists:

> search "playlist"

โญ queue

Adds an item to the playlist queue. lining them up, no skips. ๐Ÿ“‹

Usage

> queue <item>
  • <item> โ€” media item path to add to the playback queue.

Example โ€” add a specific track to the queue:

> queue /org/bluez/item/track_001

Example โ€” add an entire album to the queue:

> queue /org/bluez/item/album_rock

Example โ€” add a playlist to the queue:

> queue /org/bluez/item/playlist_favorites

โญ show-item

Shows item information. the full lore drop. ๐Ÿ“–

Usage

> show-item <item>
  • <item> โ€” media item path to display detailed information for.

Example โ€” show details of a specific track:

> show-item /org/bluez/item/track_001

Example โ€” show details of an album:

> show-item /org/bluez/item/album_rock

Example โ€” show details of an artist:

> show-item /org/bluez/item/artist_beatles

๐ŸŒˆ RESOURCES ๐ŸŒˆ

http://www.bluez.org โ€” go forth and read, bestie. โœจ


๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

linux-bluetooth@vger.kernel.org โ€” tell them, don't suffer in silence. ๐Ÿ’Œ


free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL). slay, legally. ๐Ÿ’œ


okay that's the whole page!! ๐Ÿซถ this beauty is from BlueZ, dated November 2022, and it lives in the Linux System Administration part of the manual. go control some playback, you got this. ๐Ÿ’–๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from