IAudioSource
interface
Component Props
A single <source> entry when the consumer passes multiple audio URLs (typically one mp3 + one ogg so the browser picks whichever codec it can decode). Mirrors IVideoSource minus video-specific fields.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- srcrequiredstring
- Absolute or root-relative URL to the audio file.
- typestring
- MIME type — "audio/mpeg", "audio/ogg", "audio/wav", "application/vnd.apple.mpegurl" for HLS, etc. Optional but recommended.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Codec fallback array with IAudioSource