Solved

SWF capture the time on the Video

Posted on 2014-02-26
3
219 Views
Last Modified: 2014-03-17
How do I capture the time on a SWF
0
Comment
Question by:smares323
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 39890704
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>
0
 

Author Closing Comment

by:smares323
ID: 39934565
Good advice.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 39934589
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now