App hangs after video plays on iPad mini

Hi All,

I am having an issue with my app stalling or hanging after I play a video.  Here is the sequence of what I am doing:

  1. Switch from scene A to scene B

  2. Scene B triggers a video - 5 min video 1024x768 and 117MB mp4

  3. Call back switches back to scene A when video is over

  4. The app can take over 2 min to respond, but eventually goes back to the game without crashing.

All I see if the console is this:

SpringBoard[43] <Warning>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Which gets printed 4 times during the 2 minute delay.  I do not have this issue with another video that is only 1.4MB, so I am assuming it has something to do with the size of the video. Likely lack of memory on iPad mini perhaps.

Any ideas?

Hi @icareadventure,

As you suggest, this is likely an issue with the size of the video and the hardware. Is there any way you can use a far more compressed version of the video? Or perhaps separate it into smaller segments?

Brent

Hi Brent,

I tried decreasing the overall dimensions of the video to 512x384 which brought the file size down to 58MB, but unfortunately, that did nothing to the delay.  The app still froze for about 2 minutes after the video was finished playing.

I should have mentioned that I was using the media.playVideo method.  I switched to native.newVideo, and now there is no delay at all.  This is perfect, except now I do not have the controls.  I guess I will have to add them manually.

Thanks,

Andy

Hi @icareadventure,

As you suggest, this is likely an issue with the size of the video and the hardware. Is there any way you can use a far more compressed version of the video? Or perhaps separate it into smaller segments?

Brent

Hi Brent,

I tried decreasing the overall dimensions of the video to 512x384 which brought the file size down to 58MB, but unfortunately, that did nothing to the delay.  The app still froze for about 2 minutes after the video was finished playing.

I should have mentioned that I was using the media.playVideo method.  I switched to native.newVideo, and now there is no delay at all.  This is perfect, except now I do not have the controls.  I guess I will have to add them manually.

Thanks,

Andy