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
Support Default Media Keys
-
- Contributor
- Posts: 9
- Joined: 14 Jan 2016, 18:26
- Has thanked: 1 time
- Been thanked: 7 times
- Matt Zornig
- Contributor
- Posts: 242
- Joined: 14 Feb 2017, 12:03
- Has thanked: 38 times
- Been thanked: 28 times