Skip to content
On this page

VAudioPlayer

Props

NameTypeDescription
aria-currentEnum:
page
step
location
date
time
true
false
Indicates the element that represents the current item within a container or set of related elements.
play-button-aria-labelstring
pause-button-aria-labelstring
slider-aria-labelstring
skip-forward-aria-labelstring
skip-backward-aria-labelstring
connotationEnum:
accent
cta
The connotation the audio-player should have.
srcstringIndicates the audio-player's src.
disabledbooleanIndicates whether audio player is disabled.
notimeboolean
skip-byEnum:
0
5
10
30
Allows the audio to skip back or forward
playback-ratesstringSets the available playback rates. When an empty string, no choices will be available

Events

NameEvent TypeDescription
clickMouseEventFires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
focusFocusEventFires when the element receives focus.
blurFocusEventFires when the element loses focus.
keydownKeyboardEventFires when a key is pressed.
keyupKeyboardEventFires when a key is released.
inputEventFires when the value of an element has been changed.

Methods

NameTypeDescription
srcChanged() => unknown
play() => unknown
pause() => unknown