Issue:
if i want to switch back from front cam to rear cam, there is no video input.
-
start UAR project with camera.start();
-
do some things with the rear cam
-
start front cam with camera.start(true);
-
do some things with the front cam
-
switch back to rear cam with camera.start(); or camera.start(false);
There ist no video signal after switch back from front to rear cam.
Affecting:
Safari iOS < 15
Workaround:
it’s working when i switch cam back inside the renderer() function
function render() {
requestAnimationFrame(render);
camera.updateFrame(renderer);
if(switchCamera){
camera.start();
switchCamera = false;
}
}
requestAnimationFrame(render);