WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   addVideo problems (https://forum.worldviz.com/showthread.php?t=2768)

CRI 06-04-2010 10:33 AM

addVideo problems
 
When I enter CODE

Quote:

import viz
viz.go()

object = viz.add('cylinder.wrl')
video = viz.addVideo('mona.mpg')
video.rate(.5)
object.texture(video)

video.play()
It can not show my video and sound

Jeff 06-04-2010 12:57 PM

That file does not have audio and since it is not playing in loop mode you may not notice that it plays for a few seconds when the script begins. In the following the video will also play when the spacebar is pressed:
Code:

import viz
viz.go()

object = viz.add('cylinder.wrl',pos=[0,1.5,1])
video = viz.addVideo('mona.mpg')
video.rate(.5)
object.texture(video)
video.play()

vizact.onkeydown(' ',video.play)



All times are GMT -7. The time now is 06:25 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC