View Single Post
  #3  
Old 12-09-2014, 01:27 AM
asdf asdf is offline
Member
 
Join Date: Sep 2012
Posts: 6
Include LiveStream into vizard

Hi there,

I'm having some time with a similar problem, but maybe something has changed since 2012.

I'm trying to stream a (webcam-)video via VLC into vizard and it just doesn't work. I guess livestreaming isn't supported, but maybe I'm just not looking at the right things.

So here's my code:

#Adding a quad for video-projection
quad = viz.addTexQuad()
quad.setPosition([0., 2, 3])

#loading live-stream and applying video to quad
vid = viz.addVideo('http://127.0.0.1:8080/', loop=1, play=1)
quad.texture(vid)


The localhost is just used so I can get to the next point (having the webcam on a different pc) later, so therefore I cannot just load the webcam.

If there, of course, is a simple way to load a webcam which is connected to a different pc directly into vizard it would be sufficient too.

Thanks in advance.
Reply With Quote