MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / loadInfo

Function loadInfo

src/components/LivePanel.tsx:189–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 useEffect(() => {
188 let cancelled = false;
189 const loadInfo = async () => {
190 const info = await fetchLiveInfo(activeStream.handle);
191 if (cancelled) return;
192 setLiveInfo({ ...info, loading: false });
193 if (activeStream.hlsUrl) setMode("hls");
194 else if (info.hlsUrl) setMode("yt-hls");
195 else setMode("embed");
196 };
197
198 void loadInfo();
199

Callers 1

LivePanelContentFunction · 0.85

Calls 1

fetchLiveInfoFunction · 0.85

Tested by

no test coverage detected