WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-04-2010, 10:33 AM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
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
Reply With Quote
  #2  
Old 06-04-2010, 12:57 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transition Problems djones1010 Vizard 1 03-30-2009 12:31 PM
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 12:58 AM
Viz PPT 1 problems Adam Vizard 3 08-30-2005 10:54 AM
Viz PPT 1 problems Adam Precision Position Tracker (PPT) 3 08-30-2005 10:51 AM
Problems with lighting in 2.0 murm Vizard 6 04-21-2004 09:59 AM


All times are GMT -7. The time now is 06:50 PM.


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