Passer au contenu

@capgo/capacitor-media-session

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

The Media Session plugin bridges Capacitor with the Media Session API so your audio and video players feel Natif 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

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

Jump to the Commencer Guide to wire metadata Mises à jour into your player lifecycle.