Hacker Public Radio

HPR4033: Using playerctl to control media players


Listen Later

About MPRIS
The Media Player Remote Interfacing Specification is a standard D-Bus
interface which aims to provide a common programmatic API for
controlling media players.
It provides a mechanism for discovery, querying and basic playback
control of compliant media players, as well as a tracklist interface
which is used to add context to the active media item.
man playerctl
DESCRIPTION
The playerctl utility controls MPRIS-enabled media players. In
addition to offering play, pause and stop control, playerctl also offers
previous and next track support, the ability to seek backwards and
forwards in a track, and volume control. playerctl also supports
displaying metadata (e.g., artist, title, album) for the current track,
and showing the status of the player.
Players that can be controlled using playerctl include audacious(1),
cmus(1), mopidy(1), mpd(1), quodlibet(1), rhythmbox(1), vlc(1) and
xmms2(1). However, any player that implements the MPRIS interface
specification can be controlled using playerctl including web
browsers.
Command Summary
"playerctl status" Get the current status of the player.
"playerctl play" Command the player to play.
"playerctl pause" Command the player to pause.
"playerctl play-pause" Command the player to toggle between play and
pause.
"playerctl stop" Command the player to stop.
"playerctl next" Command the player to skip to the next track.
"playerctl previous" Command the player to skip to the previous
track.
Links
https://support.mozilla.org/en-US/kb/control-audio-or-video-playback-your-keyboard
https://specifications.freedesktop.org/mpris-spec/2.2/
https://www.addictivetips.com/ubuntu-linux-tips/fix-media-keys-not-working-on-linux/
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

373 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

653 Listeners

Curious Cases by BBC Radio 4

Curious Cases

826 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

422 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,035 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

181 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,800 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

139 Listeners

What the Hack? by DeleteMe

What the Hack?

221 Listeners