VideoComponent class
This component is used to display a video in the game.
See VideoComponentData for the data schema used to create a video component
Signature:
export declare class VideoComponent extends Component3D<VideoComponentData>
Extends: Component3D<VideoComponentData>
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the VideoComponent
class.
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
boolean |
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" | ||
|
boolean |
Returns true if the video is playing | |
boolean |
Whether the video should be muted. Defaults to false | ||
number |
Set the opacity of the video. Defaults to 1 | ||
number |
Volume of the audio, from 0 to 1. Defaults to 1 |
Methods
Method |
Modifiers |
Description |
---|---|---|
| ||
| ||
| ||
Pause the video | ||
Play the video |