Search code examples
flashactionscript-3flvfancyupload

Read information from FLV file in AS3


im just new in AS3 so i have a question hope you guy can help!

I am now using FancyUpload to make an upload tool for my website, for the video module, so user can upload their video in FLV format with limited size and time

With the limited size i can handle it, but with the time ... :( I dont know how to know the total length of FLV file Hope you guys can help, and sry 4 my E lol


Solution

  • The duration of the FLV is contained in the metadata property, check the docs for more info on how to retrieve this data.

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.html#metadata

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html#event:onMetaData