Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

fix(client): accept native capability combinations in loopback gate

AAAdbfa26a778e5
diff --git a/scripts/client-loopback-gate.ts b/scripts/client-loopback-gate.ts
index c731eb25..fd3383a7 100644
--- a/scripts/client-loopback-gate.ts
+++ b/scripts/client-loopback-gate.ts
@@ -97,10 +97,10 @@ async function browserHandshake(
const health = await response.json();
if (health.protocol === ${NATIVE_PROTOCOL} && health.service === "screener-client" &&
health.port === port && typeof health.instanceToken === "string" &&
- health.nativeMedia?.video === false &&
- health.nativeMedia?.processAudio === false &&
- health.nativeMedia?.systemAudio === false &&
- health.nativeMedia?.hardwareH264 === false) {
+ typeof health.nativeMedia?.video === "boolean" &&
+ typeof health.nativeMedia?.processAudio === "boolean" &&
+ typeof health.nativeMedia?.systemAudio === "boolean" &&
+ typeof health.nativeMedia?.hardwareH264 === "boolean") {
return { port, instanceToken: health.instanceToken };
}
} catch {} finally {