Skip to content
On this page

VVideoPlayer

Base class for video-player

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.
posterstringReference to an image which is displayed before the video is played
srcstringURL of a video file
autoplaybooleanAllows the video will play automatically (muted)
loopbooleanAllows the video to loop back to the beginning when finished
playback-ratesstringSets the available playback rates. When an empty string, no choices will be available
skip-byEnum:
0
5
10
30
Allows the video to loop back to the beginning when finished

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.
playunknownFired when the video is played
pauseunknownFired when the video is paused
endedunknownFired when the video is ended

Slots

NameDescription
defaultDefault slot