i creating an application with movie animation , i have a animation some group of insects fly around a lamp ,
so i render my animation as png images [they are about 400 png image frames] and when i want play insects movie on my app … it seems the iphone running out of memory (i try short animation and works fine) but long animation not ! .
what’s your suggestion to play this animation on iphone sdk , i don’t know the MPMovieController is a good idea ! because my animation doesn’t any background .
i creating an application with movie animation , i have a animation some group
Share
Best way is to create normal movie file and play it with standard controller.
If it’s unacceptable, you can do something like this. Two threads, one thread loads images from disk, another one shows them per 1/15 (1/30, whatever) of a second. There are several difficulties:
Maybe, you can also store some part of your animation in memory (every second frame for example) so you’ll have to load less from flash.