Hi,
I am working on a WebGL AR app with ARWT library. This library works by using aframe and AR.js to start the device camera, read the camera feed from the HTML/JavaScript end, and send it to Unity.
Originally, the library demo starts the device camera (with permission granted) when the webpage is opened. I’d like to modify this so that the camera turns on only when the user presses a button. So I append the camera feed using iframe to html body when press button in Unity.
However, the screen flickers when touch (only mobile browsers, Safari, Chrome, etc.). The flickering doesn’t happen when the camera starts while webpage is opening. It only happens when the camera feed is appended to html afterwards. (Here is a flickering demo)
I found that the flickering is caused by the touchstart and touchend events. They’re registered on unitycanvas (from framework.js). But I am not able to solve it. Hope someone can give me a hint.
Thanks.
