Media keys still don't work - Ubuntu GNOME 17.04
Media keys are ignored. Instead you get a large icon of a cancel sign (circle with line through it).
Basically means you must have focus on the window and use keyboard shortcuts instead of having global media control.
This media keys don't work:
- Play/Pause
- Skip Next
- Skip Back
Yep, no global support. I wonder if PMP grabbing the media keys globally would be good enough? Otherwise we'd have to implement the mpris API.
Instead you get a large icon of a cancel sign (circle with line through it).
Uh what?
@wm4 One of these guys: https://imgur.com/a/oMII0
I'd be happy enough if PMP did that. Can't see myself using two media applications at once.
I'd also really like to see this, unfortunately I don't know what I'm doing nearly enough to begin implementing them.
@wm4 pretty please?
Media keys still do nothing - not explicitly a PMP issue but PMP should claim them so they are useful.
They can be made to work within applications as per: https://askubuntu.com/questions/48393/how-to-make-the-keyboard-media-keys-to-work-with-vlc-globally
They work in VLC & SMPlayer.
That would require implementing MPRIS2 support. That's a not quite trivial Linux-only dbus API. This wasn't done yet, so media keys won't work globally.
@wm4 Would this be helpful? If so, where would we put it in the source tree? ~~http://biboudis.blogspot.com/2013/11/qt-mpris2-and-clementine.html~~ Just realized that there is a wrapper around QtDBus for MPRIS2: https://github.com/nemomobile/qtmpris
I'd second full MPRIS integration, especially for feature parity with Windows, where PMP is integrated into the media player controls and whatnot.
I'll need to investigate this, but i also found this https://wiki.qt.io/How_to_catch_audio_keys_on_Linux_in_QML_applications
Yeah, the audio key capture thing would be the easy solution and serve to fulfill this bug, but I'd advocate on going for MPRIS due to intercompatibility advantages and being a generally cleaner approach.
With MPRIS, other applications can act on the fact that Plex is playing something - VoIP applications muting/pausing your playback, for example.
MPRIS would definitely be the ideal way to go; audio key capture is a bit of a quick-fix.
Although technically MPRIS seems the right thing, i am concerned by both ways :
- Adding another dep (like the nemomobile link above) doesn't look sane to me
- using dbus API within Qt brings a lot of stuff in for a few keys.
I really wish Qt would bring support for multimedia Keys in the framework , that's where it would make sense.
As a workaround to get mpris to work. I found that if libmpv was built with cplugins enabled this will work with plex media player.
https://github.com/hoyon/mpv-mpris
EDIT: After some usage I noticed that only the play/pause buttons will work though.