audius-client
audius-client copied to clipboard
Media buttons not working
Currently the media buttons (play/pause/prev/next) don't seem to work in controlling music playback. Would love to be able to control the music when in another desktop window.
@zkolodny, are you referring to the media buttons on your keyboard?
@piazzatron yea, so maybe its different but im on the macbook pro with a touchbar and the controls don't seem to be tracking
I just tested this on Windows 10, with media keys, on both Chrome 87.0.4280.66 (64 bit) & Firefox 83.0 (64-bit). "Pause" and "Play" seem to be working just fine (I believe these are working by default for all audio from the browser), but I can confirm that both "Previous" and "Next" are not working.
I believe you could achieve the expected functionality with https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setActionHandler (not excellent browser support) or simply listening for the keys 176
(next) & 177
(previous) if the browser doesn't support the MediaSession actions.
Closing, see https://github.com/AudiusProject/audius-client/pull/161