Passer au contenu

@capgo/capacitor-media-session

Publish track metadata, react to play/pause events, and sync playback state with native media controls.

The Media Session plugin bridges Capacitor with the Media Session API so your audio and video players feel native everywhere.

Rich metadata

Provide album art, artist, and title for lock-screen and notification controls.

Playback state sync

Keep play / pause buttons and progress indicators aligned with your player.

Action callbacks

Handle headset buttons and OS media actions from your Capacitor code.

Position reporting

Push duration, position, and rate so scrubbing works fluidly.

Jump to the getting started guide to wire metadata updates into your player lifecycle.