Skip to content

Commit

Permalink
Merge pull request #107 from Flow-Works/thinliquid/qol
Browse files Browse the repository at this point in the history
🐛 bugfix: chrome metadata not updating ui
  • Loading branch information
ThinLiquid authored Aug 14, 2023
2 parents 98d7a88 + c32f373 commit 11e3564
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/builtin/apps/scripts/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ BrowserFS.configure(
],
});

navigator.mediaSession.setActionHandler('play', () => {
window.togglePlayback();
});

navigator.mediaSession.setActionHandler('pause', () => {
window.togglePlayback();
});

navigator.mediaSession.setActionHandler('nexttrack', () => {
window.next();
});
Expand Down

0 comments on commit 11e3564

Please sign in to comment.