That means the totalTime is not "encoded" in the flv. In other words, it's missing (in the metadata). Certain flv encoders don't include the required metadata (width, height, duration, framerate, etc..). Use the Flash 8 Video Encoder (that comes with Flash 8) to encode your flv's or you can inject metadata (if you don't have the original video's) with FLVMDI: http://www.buraks.com/flvmdi/
regards, Muzak ----- Original Message ----- From: "Firdosh Tangri" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, February 12, 2007 5:26 AM Subject: Re: [flexcomponents] Controlling Video playback using the VideoDisplay control > hey thanks that was helpfull :) > > I do have another problem when I load a vdeo using the source attribute > > myVidDisp.source="my.flv" > myVidDisp.addEventListener("ready",onVideoLoaded); > private function onVideoLoaded(evt:Event):void{ > trace("Total time" +myVidDisp_VdDisp.totalTime); > } > keeps giving me -1 > > cheers > firdosh
