Page 1 of 1

swf playtime

Posted: Tue Feb 28, 2006 4:43 pm
by tomson
Hi,

Is it possible to get the playtime for a swf using flashplayercontrol? I need to know the play duration.
Or if I can get hold of the fps, that would solve my problem too.

Thanks

Re: swf playtime

Posted: Tue Feb 28, 2006 4:59 pm
by Softanics
Thank you for your question.

tomson wrote:Is it possible to get the playtime for a swf using flashplayercontrol? I need to know the play duration.
Or if I can get hold of the fps, that would solve my problem too.


You can extract the FPS from the SWF header. Find SWF specification. For instance, here is about it: http://www.the-labs.com/MacromediaFlash ... ormat.html

Posted: Mon Apr 28, 2008 3:09 pm
by RobertG
I have parsed the header and I still get total frames to 1 ?
I have used the command FPC_GetTotalFrames gives 1
is the duration another parameter? can't seem to find it in the f_in_box help file.

How can you retreive the duration of the movie? if it is a different parameter?

Br Robert .

Posted: Tue Apr 29, 2008 6:10 am
by Softanics
RobertG wrote:I have parsed the header and I still get total frames to 1 ?
I have used the command FPC_GetTotalFrames gives 1
is the duration another parameter? can't seem to find it in the f_in_box help file.

How can you retreive the duration of the movie? if it is a different parameter?


It means that this movie really has single frame. It can play animation or FLV or something else inside only one frame. For example, YouTube movie that plays FLV, it has only one frame.

In general, you can't retrieve duration of a movie, because "duration" is very specific for each task.

Thank you.