@capgo/capacitor-audio-session
Overview
Section titled “Overview”iOS-only plugin to query and control the audio session output and listen to route changes and interruptions.
Core Capabilities
Section titled “Core Capabilities”currentOutputs- Get the current active audio output routes.overrideOutput- Override the current audio output route.
Public API
Section titled “Public API”| Method | Description |
|---|---|
currentOutputs | Get the current active audio output routes. |
overrideOutput | Override the current audio output route. |
addListener | Listen for audio route changes (e.g. headset connected/disconnected). |
addListener | Listen for audio session interruptions (e.g. incoming call) and their end. |
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-audiosession.
Keep going from @capgo/capacitor-audio-session
Section titled “Keep going from @capgo/capacitor-audio-session”If you are using @capgo/capacitor-audio-session to plan native media and interface behavior, connect it with Using @capgo/capacitor-audio-session for the native capability in Using @capgo/capacitor-audio-session, Using @capgo/capacitor-live-activities for the native capability in Using @capgo/capacitor-live-activities, @capgo/capacitor-live-activities for the implementation detail in @capgo/capacitor-live-activities, Using @capgo/capacitor-video-player for the native capability in Using @capgo/capacitor-video-player, and @capgo/capacitor-video-player for the implementation detail in @capgo/capacitor-video-player.