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.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

src
required
string
Absolute or root-relative URL to the audio file.
type
string
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

vue