Progressive audio playback for AudioMedia handles with a
uniform surface across PCM (streamed) and container
(HTMLAudioElement) strategies.
See useAudioPlayer in the React binding for the full behaviour spec; this Vue version exposes the same contract with reactive refs in place of React state values.
useAudioPlayer(
media: MaybeRefOrGetter<AudioMedia | undefined>,
options: UseAudioPlayerOptions
): AudioPlayerHandle| Name | Type | Description |
|---|---|---|
media* | MaybeRefOrGetter<AudioMedia | undefined> | Audio handle from |
options | UseAudioPlayerOptions | Strategy overrides and PCM format hints. |