@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.
Keep going from @capgo/capacitor-media-session
Section titled “Keep going from @capgo/capacitor-media-session”If you are using @capgo/capacitor-media-session to plan dashboard and API operations, connect it with Using @capgo/capacitor-media-session for the native capability in Using @capgo/capacitor-media-session, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, API Keys for the implementation detail in API Keys, and Devices for the implementation detail in Devices.