SWF capture the time on the Video

smares323
smares323 used Ask the Experts™
on
How do I capture the time on a SWF
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2015
Commented:
I haven't tried it, but this blog says one way to get the duration is extract the metadata. Then divide the frameCount/frameRate

http://coldfused.blogspot.com/2008/02/reading-flash-swf-metadata-from.html

<cfscript>
  fis = createObject("java", "java.io.FileInputStream").init("C:\test.swf"); // Create the FileInputStream
  decoder = createObject("java", "macromedia.swf.TagDecoder").init(fis); // create TagDecoder
  header = decoder.decodeHeader(); // Decode the header.
  fis.close();
  duration = header.framecount / header.rate;
</cfscript>

Author

Commented:
Good advice.
Most Valuable Expert 2015

Commented:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial