Skip to content

feat: Add mediasession support #8309

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

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-authored-by: André <34163393+amtins@users.noreply.github.com>
  • Loading branch information
mister-ben and amtins authored Dec 11, 2023
commit b249c6715a7f287dc6f66c23b51f2f6d23f639cb
2 changes: 1 addition & 1 deletion src/js/mediasession.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const initMediaSession = function() {
ms.playbackState = 'playing';
});

this.on('paused', () => {
this.on('pause', () => {
ms.playbackState = 'paused';
});

Expand Down