all groups > macromedia flash flashcom > august 2005 >
You're in the

macromedia flash flashcom

group:

flv duration


flv duration topper2k
8/23/2005 8:19:36 PM
macromedia flash flashcom:
I'm using the Flash Communication Server to stream flv files through the Media
Playback Component. For some reason, I am not able to scrub through the
stream. The playback head displays flush right and I cannot scrub through the
video as you would expect to in a true stream.

I've read in a few places that the Sorenson codec is to blame here that it
doesn't set the duration in the metadata for the flv files. I've tried this
metadata injector http://www.buraks.com/flvmdi/ and still have the same
problem.

I've heard there's a way to get the duration of a FLV file using server-side
action script. Anyone know how to do that?
Re: flv duration Rajesh199
8/25/2005 12:46:53 PM
hey !!
use Riva FLV Encoder to convert media to flv
and use this code

nc=new NetConnection()
nc.connect(null)
ns=new NetStream(nc)
vid.attachVideo(ns)
ns.onMetaData=function(obj)
{
var TotalDuration:Number=obj.duration
trace(Math.round(TotalDuration))
}
ns.play("myFLV.flv")

:)


AddThis Social Bookmark Button