nysurf1
asked on
flv total time
How can i get the total time of a externaly loaded flv video , I am using as3 with the netsream class.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Note that onMetaData may not work with some flvs (which don't contain any metadata). In this case I can only recommend you to do some calculations with NetStream's bufferLength, bytesLoaded properties and file size. You can determine the estimated length, but it will be veeeeery approximate.
I suppose you can obtain file size with flash.net.FileReference's onProgress method, although some server-side solution like PHP will do this work better and plainer.
NetStream.time() is the current video position, isn't it?
I suppose you can obtain file size with flash.net.FileReference's onProgress method, although some server-side solution like PHP will do this work better and plainer.
NetStream.time() is the current video position, isn't it?
Try using NetStream.time()