MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / loading

Function loading

Scripts/ButSystem.py:10310–10323  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

current_userFunction · 0.70
get_profileFunction · 0.70

Tested by

no test coverage detected