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.42k stars 79 forks source link

next and previous do not work with firefox #213

Open govindbalaji-s opened 3 years ago

govindbalaji-s commented 3 years ago

The player I am using is firefox. I am using the synaptic package v2.0.1 in MX Linux 19.03. When I play youtube on firefox, playerctl play-pause works. However playerctl next or playerctl previous do not cause any effect. They don't produce any error messages either. Are there any logs that I can check?

I tried them on VLC Media Player, and they both worked.

I tried to install the latest release through the .deb file but ran into #191

acrisci commented 3 years ago

An update probably isn't going to solve that, it's likely an issue on the Firefox end.

govindbalaji-s commented 3 years ago

Not working on Chrome either. However, in firefox too, this works on soundcloud. Seems like some problem in youtube.

But media control keys used to work for me with youtube in ubuntu without any additional packages. Now I am trying to map those keys to playerctl commands. Do you have any suggestions on how else the media control keys would have worked in ubuntu?

unai-ndz commented 3 years ago

CanGoNext and CanGoPrevious properties in the MPRIS dbus object are false when youtube is active. Afaik firefox media controller supports media even if it does not implement the API so maybe youtube worked before this was implemented.

The discontinued web-media-controller addon still works. By emulating a click in the related button.

This should be closed and addressed by youtube or the browser.

akk382 commented 1 year ago

The media controls of next, previous are working only when we are in youtube playlist. Maybe the driver is finding difficulty with what to play next, when not in playlist.