import type { MediaPlugin } from './MediaPlugin'; /** * Headless audio playback. Activates the default platform decoder * (AVPlayer on iOS, ExoPlayer on Android) for players with no rendering * surface. NowPlaying is handled by core automatically. * * @example * ```ts * await aviation.createPlayer({ * plugins: [AudioPlugin], * audio: { category: 'playback' }, * }); * ``` */ export const AudioPlugin: MediaPlugin = { name: 'audio', setup({ engine }): void { engine.activateDefaultDecoder(); }, teardown(): void {}, };