Code

AudioPlayer API

This component extends the native audio props. This means this component can receive the native html audio tag attributes, for example, the autoPlay attribute (which is why it's not included in the table).

src

string

onInteraction

(e: useAudioPlayerOnChangeProps) => void

src

The link of the audio you want to use

onInteraction

This function returns an event containing the props described by useAudioPlayerOnChangeProps

Example

Live Demo

Last updated