Memory problem using iPhoneUtils.PlayMovie

Hi, we have this project for the iOS that has 3 videos in the StreamingAssets folder. We’re using the basic iPhoneUtils.PlayMovie to play them as well. At the moment, our app crashes after loading/playing a video for the third time. Couldn’t find any documents about this, but does it build up memory everytime a video is played? Is there a function that can release that memory?

Our videos are in .mov format. Sizes are 3,7, and 11 megs. Should we use another format? and what about the sizes? Is there a limit to how much we should use for videos?

Hope someone can help :slight_smile:

and Thanks in advace.

  • Hakimo

Switching on and off the iPad seemed to fix it. It doesn’t crash on the third video. It will still after a bunch of times. Still not sure why…

I would bet you get memory warnings in the xcode console if you run it from xcode

Hi Dreamora, I’m using instruments to check memory usage. At the moment, the videos are causing the crashes. I’ve even compressed the video quality to a total of 5 megs for the whole video but it’s still crashing.