Hey everyone, I'm trying to make a flash video player with the flvplayback component that dynamically gets the video file path from flashvars. For some reason it doesn't work. Here is what I have. I've tried every tutorial for setting and getting flash vars I could find.
Code:
import fl.video.*;
var vp:FLVPlayback = new FLVPlayback();
var path:String;
vp.source = this.root.loaderInfo.parameters.path;
var starttime:Number;
vp.seek(this.root.loaderInfo.parameters.starttime);
vp.playWhenEnoughDownloaded();
vp.registrationX = 0;
vp.registrationY = 0;
vp.bitrate = 5600;
vp.registrationHeight = 400;
vp.registrationWidth = 533.3;
vp.bufferingBar = bb;
addChild(vp);
and html
Code:
<param name=FlashVars value="starttime=60&path=/files/movies/The_Wasp_Women.mp4" />
The video is supposed to look like its streaming. The start time of the movie is determined by the php by subtracting the unix time of when it started from the current unix time. Then it should be passed through the flash vars to make it seek to that time. Thanks in advance for any help.