Skip to content

VAudioPlayer

Props

NameTypeDescription
connotationEnum:
accent
cta
The connotation the audio-player should have.
current-timenumber
disabledbooleanIndicates whether audio player is disabled.
durationnumber
duration-fallbackbooleanEnables fallback logic to fetch and decode audio buffer for duration when metadata is missing.
notimeboolean
pause-button-aria-labelstring
pausedboolean
play-button-aria-labelstring
playback-ratenumber
playback-ratesstringSets the available playback rates. When an empty string, no choices will be available
skip-backward-aria-labelstring
skip-byEnum:
0
5
10
30
Allows the audio to skip back or forward
skip-forward-aria-labelstring
slider-aria-labelstring
srcstringIndicates the audio-player's src.

Events

NameEvent TypeDescription
blurFocusEventFires when the element loses focus.
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.
inputEventFires when the value of an element has been changed.
keydownKeyboardEventFires when a key is pressed.
keyupKeyboardEventFires when a key is released.

Methods

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