setTexture

Sets the TextureResource of the VideoMaterial in the following modes: VideoDimensionMode.MONO, VideoDimensionMode.SIDE_BY_SIDE, and VideoDimensionMode.TOP_AND_DOWN.

This method is typically used to set the cover image of the video.

Remember to release the texture after use by calling TextureResource.close.

Parameters

texture

The TextureResource object representing the texture to be applied to the VideoMaterial.


Sets the TextureResource of the VideoMaterial in VideoDimensionMode.MULTIPLE_VIEW.

This method is typically used to set the cover image of the video.

Remember to release the textures after use by calling TextureResource.close.

Parameters

textureLeft

The TextureResource object representing the texture to be applied to the VideoMaterial for the left eye.

textureRight

The TextureResource object representing the texture to be applied to the VideoMaterial for the right eye.