altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.45k stars 79 forks source link

Seek position not working #229

Open peter099 opened 3 years ago

peter099 commented 3 years ago

I installed playerctl on MX Linux XFCE and if i run in the terminal playerctl play-pause and playerctl stop it works, but if i run playerctl position 5- or playerctl position 5+ it doesn't work. The media player i am using is Cantata.

gerrywastaken commented 3 years ago

That's how I interpreted the docs too, however I'm wondering if this is the correct format as the docs weren't really all that clear to me without an example.

SunnyOd commented 2 years ago

I'm using playerctl to skip forwards/backwards 10s/5s using this sxhkd entry:

MEDIA Controls - Browsers

alt + shift + {space,comma,period} playerctl -p firefox,com.brave.Browser,chrome {play-pause,position 5-,position 10+}

position works perfectly in chrome and the video skips as expected, however it does nothing in firefox. Anyone else come across this? Maybe I've missed something?

Cheers S

ghost commented 1 year ago

I just realized about this limitation (playerctl position 5-) on Firefox. Does anyone know if there is a workaround?

avindra commented 1 year ago

Firefox hasn't implemented seeking. Chromium did it already.

Relevant bugs:

sudormrfbin commented 3 months ago

There's a patch open to add seek position support to Firefox -- https://phabricator.services.mozilla.com/D212939.