fix(route): preserve media while converging direct paths

This commit is contained in:
AAA committed 2026-08-26 01:21:34 +08:00
1 parent d55b089e7b
commit f87c2ba0ed
25 files changed
+606 -367

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ async function main(): Promise<void> {
nodeEnv: "production", port: appPort, listenHost: "127.0.0.1",
publicBaseUrl: new URL(baseUrl), allowedOrigins: new Set([baseUrl]),
siteAccessPassword: sitePassword, roomLeaseMs: 86_400_000,
maxRooms: 4, maxViewersPerRoom: 2, endpointMediaCopyCapacity: 2,
maxViewersPerRoom: 2, endpointMediaCopyCapacity: 2,
peerAssistedMedia: false, stunUrls: [],
};
server = await createScreenerServer({ config, staticDirectory: resolve(root, "dist/client") });
+2 -1
View File
@@ -11,6 +11,7 @@ import WebSocket from "ws";
import { createScreenerServer, type ScreenerServer } from "../src/server/app";
import { loadConfig } from "../src/server/config";
import {
ROOM_CAPACITY,
RoomStore,
type ConnectedParticipant,
type ConnectParticipantInput,
@@ -381,7 +382,7 @@ async function main(): Promise<void> {
});
const roomStore = new ObservedRoomStore({
leaseMs: config.roomLeaseMs,
maxRooms: config.maxRooms,
maxRooms: ROOM_CAPACITY,
maxViewersPerRoom: config.maxViewersPerRoom,
}, () => senderLedger.record({ hostWssAuthenticated: true }));
server = await createScreenerServer({ config, roomStore });
+2 -1
View File
@@ -21,6 +21,7 @@ import {
} from "../src/server/app";
import { loadConfig } from "../src/server/config";
import {
ROOM_CAPACITY,
RoomStore,
} from "../src/server/room-store";
import {
@@ -3042,7 +3043,7 @@ export async function main(): Promise<number> {
config: serverConfig,
roomStore: new RoomStore({
leaseMs: serverConfig.roomLeaseMs,
maxRooms: serverConfig.maxRooms,
maxRooms: ROOM_CAPACITY,
maxViewersPerRoom: serverConfig.maxViewersPerRoom,
}),
});