Small loading screen shown right after login. This prevents the user from briefly seeing intermediate pages while the session, profile row, and other bootstrap data is prepared.
()
| 10308 | try{ |
| 10309 | if(!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia){ throw new Error('media_unsupported'); } |
| 10310 | await sleep(220); |
| 10311 | stream = await acquireCameraStream(); |
| 10312 | videoEl.srcObject = stream; |
| 10313 | videoEl.style.visibility = 'visible'; |
| 10314 | try{ await videoEl.play(); }catch(e){} |
| 10315 | await waitForVideo(); |
| 10316 | sizeCanvasFrom(videoEl); |
| 10317 | |
| 10318 | if(typeof Camera !== 'undefined'){ |
| 10319 | cameraActive = new Camera(videoEl, { |
| 10320 | onFrame: async () => { |
| 10321 | if(sourceMode !== 'camera' || processing) return; |
| 10322 | processing = true; |
| 10323 | try{ await faceMesh.send({ image: videoEl }); }catch(err){ console.error(err); } |
| 10324 | processing = false; |
| 10325 | }, |
| 10326 | width: videoEl.videoWidth || 1280, |
nothing calls this directly
no test coverage detected