Get swf info

The place for "I can't figure out how to..." questions.

Get swf info

Postby newbtophp » Wed Feb 17, 2010 10:11 am

Hi,

I'm new to getID3 and I've looked at the demos/ but can't find any examples on how retrieve info from a .swf (flash) file.

The swf is a flash game and want to retrieve the width, height, an duration.

Can anyone show me how too?, or start me off.

Thanks,
newbtophp
User
 
Posts: 3
Joined: Wed Feb 17, 2010 10:01 am

Re: Get swf info

Postby Pernod » Wed Feb 17, 2010 4:03 pm

Currently swf files are not supported by the GetID3 library. How would you expect to get a duration from a game?
Pernod
User
 
Posts: 40
Joined: Sat Mar 21, 2009 12:30 pm
Location: London, UK

Re: Get swf info

Postby James Heinrich » Wed Feb 17, 2010 7:50 pm

Actually getID3 does have (limited) SWF support. It still may not return meaningful data from a Flash game, for example.
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada

Re: Get swf info

Postby newbtophp » Wed Feb 17, 2010 9:12 pm

James Heinrich wrote:Actually getID3 does have (limited) SWF support. It still may not return meaningful data from a Flash game, for example.


Can you provide some examples on what it does support, or what possibles uses? :)

Pernod wrote:Currently swf files are not supported by the GetID3 library. How would you expect to get a duration from a game?


I meant as in the game runtime, - how long is the gameplay.
newbtophp
User
 
Posts: 3
Joined: Wed Feb 17, 2010 10:01 am

Re: Get swf info

Postby James Heinrich » Wed Feb 17, 2010 9:23 pm

It will usually get width [video][resolution_x] and height [video][resolution_y] fairly reliably.
Playtime [playtime_seconds] is probably accurate if it's a once-through video or animation. A very large portion of Flash files involve looping and or conditional codepaths, so the playtime (if returned at all) is pretty meaningless.
I meant as in the game runtime, - how long is the gameplay.
How long does it take you to play Solitare? or Crysis? it's not a defined time... if it was it wouldn't be a game, it would be a video...
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada


Return to Support 1.7.x

Who is online

Users browsing this forum: No registered users and 1 guest