Skip to content

VVideoPlayer

Base class for video-player

Props

NameTypeDescription
autoplaybooleanSets the video to start playing automatically after loading
loopbooleanSets the video to loop
playback-ratesstringSets the possible playback rates
posterstringReference to poster image's source
skip-byEnum:
0
5
10
30
Sets the amount to skip
srcstringReference to the video's source

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.
endedCustomEvent<undefined>Fired when the video is ended
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.
pauseCustomEvent<undefined>Fired when the video is paused
playCustomEvent<undefined>Fired when the video is played

Slots

NameDescription
defaultDefault slot