Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add media control #16

Open
franzmueller opened this issue Dec 1, 2017 · 1 comment
Open

Add media control #16

franzmueller opened this issue Dec 1, 2017 · 1 comment

Comments

@franzmueller
Copy link

Hi,
I forked your app and modified it to include media controls (play, stop, next, previous, mute, volume up and down).
The problem I encountered is that java (or at least the Robot class) by default can't emulate key presses for special keys like the media keys. I therefore used the jnativehook library, which I found working just fine (tested on Windows only).
For the moment you need to import the library yourself (I think the GPL license of jnativehook isn't compatible with your MIT license).

Feel free to check my implementation and include it in your build or modify it as you like.

Kind regards

@varunon9
Copy link
Owner

varunon9 commented Dec 1, 2017

Thanks franzmueller,

I'll have a look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants