fix(media): accept LiveKit two-layer screen RIDs (#110)

Match Piik's two-layer sender guard to LiveKit 2.22.0 q,h RID construction, restore private-link Viewer smoke entry, and retain the local one-root SFU/UDP functional evidence. TURN and performance remain outside this functional slice.
This commit is contained in:
AAA authored and GitHub committed 2026-08-21 06:09:14 +08:00
1 parent 7b1e01ed6b
commit d31912fe79
7 files changed
+44 -26

No files matched your search

+9 -1
View File
@@ -1935,8 +1935,16 @@ async function runCase(
signal,
);
const roomId = host.roomId!;
const viewerUrl = await evaluate<string>(
cdp,
hostPage,
"document.querySelector('.invite-url')?.getAttribute('title') || ''",
);
if (!viewerUrl.startsWith(`${baseUrl}/r/${roomId}#v=`)) {
throw new Error("Host private Viewer invite was unavailable");
}
for (let viewerIndex = 1; viewerIndex <= viewerCount; viewerIndex += 1) {
const viewerPage = await createPage(cdp, `${baseUrl}/r/${roomId}`, {
const viewerPage = await createPage(cdp, viewerUrl, {
...commonInit,
label: `viewer-${viewerIndex}`,
role: "viewer",