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 | const timer = setTimeout(bad, 6000); |
| 10309 | }); |
| 10310 | } |
| 10311 | |
| 10312 | async function startCamera(){ |
| 10313 | stopUploadMedia(); |
| 10314 | stopLive(); |
| 10315 | sourceMode = 'camera'; |
| 10316 | updateSourceLabel(currentFacing === 'environment' ? 'BACK CAMERA' : 'FRONT CAMERA'); |
| 10317 | setStatus(I18N.startingCamera || 'Starting camera...'); |
| 10318 | try{ |
| 10319 | if(!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia){ throw new Error('media_unsupported'); } |
| 10320 | await sleep(220); |
| 10321 | stream = await acquireCameraStream(); |
| 10322 | videoEl.srcObject = stream; |
| 10323 | videoEl.style.visibility = 'visible'; |
| 10324 | try{ await videoEl.play(); }catch(e){} |
| 10325 | await waitForVideo(); |
| 10326 | sizeCanvasFrom(videoEl); |
nothing calls this directly
no test coverage detected