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 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,

Callers

nothing calls this directly

Calls 2

current_userFunction · 0.70
get_profileFunction · 0.70

Tested by

no test coverage detected