Hi!
I was testing my .apk build in Magic Leap 2.
I have multiple prefabs that contain ML Media Player that all play a different video.
I have a forwards and backwards button to go through these prefabs. Let's say I press forwards button, that will destroy the prefab currently in the scene, and then spawn the next prefab with a different video.
All these prefabs have a ML Media Player Behavior script sitting on them, and a small script of mine that simply finds the ML Media Player Behavior components and tells it to play video (as I want the video to auto-play once the prefab is instantiated).
During testing, with a built .apk installed on the headset, I noticed in Android Logcat an error. It never appears for the first instantiated prefab, but it appears for the ones after.
E.g. video prefab - video prefab (error) - video prefab (error) - cube - video prefab - video prefab (error), etc.
I'm not sure what this is about, maybe any of the devs have an idea, and how impactful is it to the project? Because I've stress tested the app too, and if I spam the button to loop through video prefabs after a while the app crashes (after about 100 instantiations).
I've observed Heap Alloc and it stays throughout the entire run until crash at about 47MB.
Unity editor ver. 2022.2.6f1
ML2 OS ver. 1.2.0
ML SDK ver. 1.6.0
Windows 11