As a budding programmer, I have come to love using GreenSock’s VideoLoader. Now I am trying to incorporate it into Papervision3D’s VideoStreamMaterial with just a hair of success. Here is my ordeal:
1st: Using GreenSock’s VideoLoader class, I load an entire .flv before anything continues.
var vl:VideoLoader = new VideoLoader("../bin/video/clickme.flv",{name:"myVideo", autoPlay:false,centerRegistration:true,onComplete:videoLoaderComplete});
2nd: After the onComplete event is fired, a new VideoStreamMaterial is instanced. The two required parameters are VideoStreamMaterial(video:Video, stream:NetStream)
var vidmat:VideoStreamMaterial = new VideoStreamMaterial(vl.rawContent,vl.netStream);
3rd: Now all of this works. It loads, attaches the material to the cube, the 3D cube is rendering correctly(Because I attached a rotate on mouseOver), and you can hear the netstream audio. However, the only material I see attached to the cube is the first frame of the video. It appears to be paused.
Any tips would be welcomed ecstatically.