Log in or register to post comments

10 videos crash app

March 5, 2013 - 2:46pm #1

I've created an app using unity working with the android platform and when I add the 10th video to the 10th image target it crashes the app. The app starts shows the splash screen and when it tries to load it goes back to the android home screen. This only happens when I add the 10th video. 

I was thinking the video player sample has a default limit maybe set in either the videoplaybackbehaviour or the videoplaybackcontroller. I'm not sure though where it would be if there is a limit?

10 videos crash app

March 6, 2013 - 12:56pm #2

Hi, the videoplayback sample does not have any explicit limitations to the number of videos;

however, loading videos is very much memory consuming, so at some point the application will crash (that's just normal, you cannot load an arbitrary number of resources, particularly on a mobile device);

the typical/recommended solution here is to load and unload videos dynamically;

this Thread discusses this issue and also shares a solution (with code):

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/sharing-videoplaybackbehaviour-and-loading-runtime

HTH.

 

Log in or register to post comments