decord/source/modules/media_engine/LowLatencyRateControlExperiment.tsx

30 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13315
// Function ID: 13316
2026-07-20 16:05:17 +00:00
// Name: getLowLatencyRateControlExperimentConfig
2026-08-11 06:20:06 +00:00
// Dependencies: [1368, 2]
2026-07-20 16:05:17 +00:00
// Exports: getLowLatencyRateControlExperimentConfig
2026-08-25 06:04:03 +00:00
// Module 13315 (getLowLatencyRateControlExperimentConfig)
2026-08-24 06:08:38 +00:00
import getUnitIdDefault from "getUnitId" /* 1368 */;
2026-07-29 08:29:29 +00:00
let obj = { 1: null };
obj[1] = { enabled: true };
2026-08-24 06:08:38 +00:00
let closure_0 = getUnitIdDefault({ kind: "user", name: "2025-10-low-latency-rate-control", defaultConfig: { enabled: false }, variations: obj });
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/media_engine/LowLatencyRateControlExperiment.tsx");
2026-07-20 16:05:17 +00:00
export const getLowLatencyRateControlExperimentConfig = function getLowLatencyRateControlExperimentConfig(disable) {
let flag = disable.disable;
if (flag === undefined) {
flag = false;
}
let obj = closure_0;
if (flag) {
let defaultConfig = obj.definition.defaultConfig;
} else {
2026-07-29 08:29:29 +00:00
obj = { location: null };
obj[0] = disable.location;
2026-07-20 16:05:17 +00:00
defaultConfig = obj.getConfig(obj);
}
return defaultConfig;
};