Skip to main content

VideoConfig

Since version 4.0.0

Config for the video source, mainly standard attributes for the video element.

interface VideoConfig

Properties

If true, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.

caution

muted should be true to enable this option.

If true, the browser will automatically seek back to the start upon reaching the end of the video.

Whether to initially set video silenced.

caution

This should be true to enable autoplay.

Initial volume. (0~1)

Properties

autoplay

autoplay

boolean

If true, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data.

caution

muted should be true to enable this option.

loop

>=4.0.0
loop

boolean

If true, the browser will automatically seek back to the start upon reaching the end of the video.

muted

>=4.0.0
muted

boolean

Whether to initially set video silenced.

caution

This should be true to enable autoplay.

volume

>=4.0.0
volume

number