6:// Load local .env (same directory) so STREAM_API_URL/TOKEN etc work on shared hosting 1015: $p = $st->fetch(PDO::FETCH_ASSOC); 1019: $p = $st->fetch(PDO::FETCH_ASSOC); 1135:window.__STREAM_CFG.endpoint = ; 1136:window.__STREAM_CFG.token = ; 1137:window.STREAM_API_URL = window.__STREAM_CFG.endpoint; 1138:window.STREAM_API_TOKEN = window.__STREAM_CFG.token; 1658: - Token endpoint: livekit_token.php (recommended) with fallbacks. 1664: ?token=livekit_token.php (override token endpoint) 1792: const r = await fetch(projectAssetApiUrl("media"), { credentials:"include" }); 1800: persistedDataUrl: "", 2308: const r = await fetch("settings_api.php?project="+encodeURIComponent(PROJECT), { 2319: const r = await fetch("settings_api.php?project="+encodeURIComponent(PROJECT), { 2441: const r = await fetch("settings_api.php?project="+encodeURIComponent(PROJECT), { credentials:"include" }); 2579: endpoints.push("livekit_token.php", "token_livekit.php", "token.php"); 2602: const r = await fetch(url.toString(), { credentials: "same-origin" }); 3325: persistedDataUrl: "", 3342: const r = await fetch(projectAssetApiUrl("media"), { 3356: persistedDataUrl: "", 3404: const r = await fetch(projectAssetApiUrl("media") + "&asset_id=" + encodeURIComponent(id), { 4704: endpoint:"https://studio.itahukamedia.com/stream_api.php", 4706: inputUrl: "rtmp://mtx.itahukamedia.com:1935", 4758: // Normalize endpoint (allow full stream_api.php URL) 4759: if(!streamCfg.endpoint || typeof streamCfg.endpoint!=="string") streamCfg.endpoint = "https://studio.itahukamedia.com/stream_api.php"; 4803: if(!base || /\.php(\?|$)/i.test(base) || /stream_api\.php/i.test(base) || base.startsWith("./") || base.startsWith("/")) base="https://stream.itahukamedia.com"; 4820: res = await fetch(url, { mode:"cors", cache:"no-store", 4934: if(/\.php(\?|$)/i.test(streamCfg.endpoint) || /stream_api\.php/i.test(streamCfg.endpoint) || streamCfg.endpoint.startsWith("./") || streamCfg.endpoint.startsWith("/")) streamCfg.endpoint="https://stream.itahukamedia.com"; 4949: rtmp_url:"", 6547: - Use ?action=... calls for stream_api.php (avoids /status 404 on shared hosting) 6593: