Feature Request: Add support for media control
This feature should allow spmp playback to be controlled by any hardware that uses the system media control. (e.g keyboard)
Do you know any open-source Java applications that have this feature? I'm not entirely sure where to start, especially for Windows.
Here's what I searched so far:
-
Stack Overflow about media keys: https://stackoverflow.com/questions/30221022/how-to-emulate-pressing-media-keys-in-java
-
The repo mentioned in that overflow: https://github.com/nsnave/java-media-keys
That seems to be for simulating media key presses, not for detecting them.
How about this library? It's windows specific though. https://github.com/melloware/jintellitype
That seems like it'd work for media keys, but media session won't be shared with the system like in your screenshot.
For my own later reference, this library seems like it would work: https://github.com/Selemba1000/JavaMediaTransportControls
The library I mentioned seems to work on Linux, but on Windows it depends on DLL blobs with no source code so I won't be able to use it until https://github.com/Selemba1000/JavaMediaTransportControls/issues/1 is resolved.
I've implemented media controls for the native Windows target of mediasessionkt. Support for the JVM target (and by extension SpMp) should follow soon.
Added by dd8ac3d