Log in or register to post comments

Load and unload videos in Vuforia

September 8, 2016 - 9:22am #1

Hello,

 

So I have built this app which contains videos and plays them fine when trackers are being found - at least in Android.

However, when I build it to iPhone, the problem is that once the videos are detected it starts to load, then the videos just get a white rectangle with an X.

After some more testing I am 99% sure that it is related to the memory capabilities inside the apple hardware. After scaling the size of the app down, the videos works again, even though one just gets this gray/cyan colour in the rectangle - but the sound works.

I am wondering, is it possible to create a script which loads only the video which are being found on the trackable, then once you remove the marker it unloads the video from the memory again?

How would people do such a thing? Loading all the videos seems to just overload the memory.

Load and unload videos in Vuforia

September 12, 2016 - 5:56am #2

Im thinking something along these lines perhaps?

 

https://docs.unity3d.com/ScriptReference/Resources.html

 

any ideas?

Log in or register to post comments