VAudioPlayer
Props
Name | Type | Description |
---|---|---|
aria-current | Enum: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-label | string | |
pause-button-aria-label | string | |
slider-aria-label | string | |
skip-forward-aria-label | string | |
skip-backward-aria-label | string | |
connotation | Enum:accent cta | The connotation the audio-player should have. |
src | string | Indicates the audio-player's src. |
disabled | boolean | Indicates whether audio player is disabled. |
notime | boolean | |
skip-by | Enum:0 5 10 30 | Allows the audio to skip back or forward |
playback-rates | string | Sets the available playback rates. When an empty string, no choices will be available |
Events
Name | Event Type | Description |
---|---|---|
click | MouseEvent | Fires 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. |
focus | FocusEvent | Fires when the element receives focus. |
blur | FocusEvent | Fires when the element loses focus. |
keydown | KeyboardEvent | Fires when a key is pressed. |
keyup | KeyboardEvent | Fires when a key is released. |
input | Event | Fires when the value of an element has been changed. |
Methods
Name | Type | Description |
---|---|---|
srcChanged | () => unknown | |
play | () => unknown | |
pause | () => unknown |