VVideoPlayer
Base class for video-player
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. |
poster | string | Reference to an image which is displayed before the video is played |
src | string | URL of a video file |
autoplay | boolean | Allows the video will play automatically (muted) |
loop | boolean | Allows the video to loop back to the beginning when finished |
playback-rates | string | Sets the available playback rates. When an empty string, no choices will be available |
skip-by | Enum:0 5 10 30 | Allows the video to loop back to the beginning when finished |
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. |
play | CustomEvent<undefined> | Fired when the video is played |
pause | CustomEvent<undefined> | Fired when the video is paused |
ended | CustomEvent<undefined> | Fired when the video is ended |
Slots
Name | Description |
---|---|
default | Default slot |