@capgo/capacitor-media-session
Capacitor plugin to expose media session controls of the device.
Overview
Section titled “Overview”Capacitor plugin to expose media session controls of the device.
Core Capabilities
Section titled “Core Capabilities”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.
Public API
Section titled “Public API”| Method | Description |
|---|---|
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. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-media-session.