Skip to content

@capgo/capacitor-media-session

Capacitor plugin to expose media session controls of the device.

Capacitor plugin to expose media session controls of the device.

  • setMetadata - Sets metadata of the currently playing media.
  • setPlaybackState - Updates the playback state of the media session.
  • setActionHandler - Registers a handler for a media session action.
  • setPositionState - Updates position state for the active media session.
MethodDescription
setMetadataSets metadata of the currently playing media.
setPlaybackStateUpdates the playback state of the media session.
setActionHandlerRegisters a handler for a media session action.
setPositionStateUpdates position state for the active media session.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-media-session.