VideoPlayerComponent

constructor(player: CypressMediaPlayer, meshResource: MeshResource, videoMaterial: VideoMaterial)

Creates a VideoPlayerComponent instance with the given CypressMediaPlayer, MeshResource, and VideoMaterial, allowing the user to create a customized mesh themselves or use an existing model's mesh to render the video on the model entity's surface.

Parameters

player

The CypressMediaPlayer used to play the video.

meshResource

The MeshResource used to render the video.

videoMaterial

The VideoMaterial used to render the video.