swf playtime

DLL Edition of the F-IN-BOX
tomson
Posts: 1
Joined: Tue Feb 28, 2006 4:33 pm

swf playtime

Postby tomson » Tue Feb 28, 2006 4:43 pm

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: swf playtime

Postby Softanics » Tue Feb 28, 2006 4:59 pm

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
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

RobertG
Posts: 10
Joined: Mon Apr 28, 2008 2:45 pm

Postby RobertG » Mon Apr 28, 2008 3:09 pm

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 .

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Tue Apr 29, 2008 6:10 am

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.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 15 guests

cron