import type { MediaPlugin } from '../plugins/MediaPlugin'; /** * Declares the player video-capable: registers the default platform decoder * and marks the player as a valid `VideoView` attachment target (VideoView * warns in dev builds when attached to an audio-only player). * * @example * ```ts * import { createAviation } from '..'; * import { createAviation, VideoPlugin, VideoView } from '@react-native-aviation/core'; * * await aviation.createPlayer({ * plugins: [VideoPlugin], * audio: { category: 'playback' }, * }); * ``` */ export const VideoPlugin: MediaPlugin = { name: 'video', setup({ engine }): void { engine.activateDefaultDecoder(); }, teardown(): void {}, };