Plus · AudioPlayer
AudioPlayer
Used to play audio

Demos

How to import

Basic Usage

Basic usage by passing audio URL through audioUrl.
audioUrl supports string, string array, object, and object array. See AudioPlayer for detailed parameters.

Hide Toolbar

Set showToolbar to false to hide the toolbar

Theme

Set the audio player theme through theme, supports light and dark, default is dark

API Reference

AudioPlayer

PropertyDescriptionTypeDefault
audioUrlAudio addressstring | string[] | AudioInfo | AudioInfo[]-
autoPlayAuto playbooleanfalse
themeTheme, optional values: dark and lightstring"dark"
showToolbarWhether to display the toolbarbooleantrue
skipDurationSkip timenumber10
classNameClass namestring-
styleInline styleobject-

AudioInfo

PropertyDescriptionTypeDefault
srcAudio addressstring-
titleAudio titlestring-
coverCover imagestring-