I encountered something like that before... As far as I can recall we were getting the video duration on the videoEvent.READY event... Like you say sometimes the duration was there, sometimes it was still -1. I think we just put in a timer to keep trying until the value wasn't -1, and that worked. However, this doesn't seem like an ideal solution, so I'd be interested to hear if anybody has a better solution.
Obviously you'll still have an issue with flv's that don't include the duration in the metadata, as mentioned by the other posters, but if you're getting it sometimes that doesn't seem to be your problem. --- In [email protected], "Firdosh Tangri" <[EMAIL PROTECTED]> wrote: > > well the weird thing is every time I run the app in debug mode sometimes I > get -1 sometimes i get 280.66 which is the correct value...?? > > its just plain random > > firdosh >
