<viz>.addVideo

Adds a video file.

 

<viz>.addVideo(
    fileName    
    type = viz.AUTO_COMPUTE    

)

 

fileName

Video filename


type = viz.AUTO_COMPUTE

viz.TEX_1D
viz.TEX_2D
viz.TEX_3D
viz.TEX_CUBE
viz.TEX_RECT


Remarks

If type is viz.AUTO_COMPUTE, then Vizard will use viz.TEX_RECT if the video dimensions are not a power of two, otherwise it will use viz.TEX_2D.

Vizard can read any video format that has a DirectShow filter installed on the users computer.

Return Value

A video object that inherits from both <multimedia:av> and <multimedia:image>

Example

object = viz.addVideo('somevideo.avi')

See also

<viz>.addAudio
<viz>.addBlankTexture
<viz>.addRenderTexture
<viz>.addTexture
<viz>.addTextureFromBuffer