Page 1 of 1

Support Default Media Keys

Posted: 26 Jan 2016, 20:32
by baileyb622
The [1]keysocket project on GitHub lets web apps respond to the system default media keys while focus is not in the tab or Chrome. This is a really handy feature since it allows you to control a web player using custom media keys while in other applications. There is a [2]pull request already in order to add support for Subsonic. I commented on the pull request with an example of how to ensure it also works for Madsonic. I would appreciate any +1's on that PR in order to help get it merged.

However, it seems that the new preferred method for web players to support the keysocket extension is to add some metadata to the view and respond to certain events[3]. However this would require code changes in Madsonic, was going to try and contribute but couldn't find the source code?

[1] https://github.com/borismus/keysocket
[2] https://github.com/borismus/keysocket/pull/153
[3] https://github.com/borismus/keysocket/pull/122

Re: Support Default Media Keys

Posted: 05 Mar 2017, 06:25
by Matt Zornig
really like the idea and the convenience that would occour!

++1