Vivid API

Audio Player

Audio Player is a component used to play audio files. It is based on the HTML5 audio element.

Default Configuration

Hidden Time Stamp

The notime attributes removes the time stamp from the rendered component.

Skip By

Use the skip-by attribute to add skip buttons to the Audio Player. The attribute accepts 30, 10, 5 and 0 values which refer to the number of seconds to skip. Setting the value to 0 (default) remove the buttons from the rendered component.

Playback Rates

Playback rates can be modified by passing a comma separated string of numbers to the playback-rates attribute. The playback rates option can be removed by passing an empty string or not including the attribute at all.

Connotation

The connotation attribute sets the audio-player’s color. In the example below it is set to cta.

Disabled

The disabled attribute disables the audio-player.