"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

camDevice.Init() and camDevice.Start()

Hello,

I am experiencing an issue with Vuforia in Unity 2017.0.0f3 for iOS (on Mac) where when I go to init() and start() my camera after having stop()'d and deinit()'d my camera for a pause in Vuforia use, where the applications screen goes completely black and hangs for a second before returning to the application.

Has anybody else experienced this problem?

Is there a way to resolve?

This is what the code looks like for starting the camera:

CameraDevice camDevice = CameraDevice.Instance;

        if (camDevice != null && !camDevice.IsActive())         {             Debug.Log("got the camera instance - Starting the camera");             camDevice.Init(CameraDevice.CameraDirection.CAMERA_BACK);             camDevice.Start();

                    }

 

This is what the code looks like for stopping the camera:

CameraDevice camDevice = CameraDevice.Instance;

        if (camDevice != null && camDevice.IsActive()) {             Debug.Log("got the camera instance - Stopping the camera");             camDevice.Stop();             camDevice.Deinit();         }

 

Thanks in advance!

Hello oliverRandom42,

Could you try also stopping and starting the tracker here and see if that helps? For reference, here is a function from the samples that restarts the camera.