fix(media): restore peer-assisted 16-viewer admission (#170)
Keep the default at eight while restoring the documented explicit 1-16 admission range and its cap2/cap3 functional gate.
This commit is contained in:
1 parent
8774b43c35
commit
f8aac57a63
11 files changed
+61
-42
No files matched your search
@@ -16,7 +16,6 @@ const MIN_SELECTED_EDGE_TURN_SECRET_BYTES = 32;
|
||||
const MAX_SELECTED_EDGE_TURN_SECRET_BYTES = 128;
|
||||
const MIN_SELECTED_EDGE_TURN_TTL_SECONDS = 60;
|
||||
const MAX_SELECTED_EDGE_TURN_TTL_SECONDS = 10 * 60;
|
||||
const MAX_PEER_ASSISTED_VIEWERS = 8;
|
||||
const DEFAULT_MAX_VIEWERS_PER_ROOM = 8;
|
||||
const DEFAULT_MAX_SFU_ROOTS_PER_ROOM = 2;
|
||||
const MAX_SFU_ROOTS_PER_ROOM = 2;
|
||||
@@ -390,12 +389,6 @@ export function loadConfig(
|
||||
if (nodeEnv === "production" && stunUrls.length === 0) {
|
||||
throw new Error("STUN is required in production");
|
||||
}
|
||||
if (peerAssistedMedia && maxViewersPerRoom > MAX_PEER_ASSISTED_VIEWERS) {
|
||||
throw new Error(
|
||||
"PEER_ASSISTED_MEDIA currently supports at most 8 viewers per room",
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
nodeEnv,
|
||||
port,
|
||||
|
||||
Reference in new issue
Block a user