VideoComponentData interface
Data specification for VideoComponent, see ComponentManager.create() on how to create a component
Signature:
export interface VideoComponentData extends Component3DData Extends: Component3DData
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
false |
Whether the video should start playing automatically. Defaults to false | ||
|
number |
The angle of the curved video. Defaults to 180 | ||
|
"flat" | "curved" |
Determine the display mode of the video. Defaults to "flat" | ||
|
string |
(Optional) if not provided, an auto id will be generated | ||
|
string |
(Optional) name for the component. Defaults to "" | ||
|
number |
Set the opacity of the video. Defaults to 1 | ||
|
(Optional) Position of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
|
string |
(Optional) url of the preview image to show when the video is not playing | ||
|
(Optional) Rotation of the component in the space. Defaults to {x: 0, y: 0, z: 0} | |||
|
(Optional) Scale of the component in the space. Defaults to {x: 1, y: 1, z: 1} | |||
|
"video" | |||
|
string |
url of the video file | ||
|
number |
(Optional) Volume of the audio, from 0 to 1. Defaults to 1 |