decord/source/modules/go_live/utils/canStreamWithSettings.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 10106
// Function ID: 10107
// Name: canStreamWithSettings
// Dependencies: [4687, 10107, 10108, 2]
// Exports: default
// Module 10106 (canStreamWithSettings)
import GoLiveAutoQualityExperiment from "GoLiveAutoQualityExperiment" /* 10107 */;
import canUseStreamSettingDefault from "canUseStreamSetting" /* 10108 */;
import StreamSettingsConstants from "StreamSettingsConstants" /* 4687 */;
import size from "module_2" /* 2 */;
({ ApplicationStreamSettingRequirements: c3, ApplicationStreamPresets: closure_4 } = StreamSettingsConstants);
const result = size.fileFinishedImporting("modules/go_live/utils/canStreamWithSettings.tsx");
export default function canStreamWithSettings(arg0, arg1, arg2, arg3, arg4, arg5) {
if (arg0 === constants.PRESET_AUTO) {
return GoLiveAutoQualityExperiment.getGoLiveAutoQualityExperimentConfig({ location: "canStreamWithSettings" }).allowAutoQuality;
} else {
const iter = dependencyMap[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
let tmp4 = nextResult;
if (null == nextResult.preset) {
if (arg1 === tmp4.resolution) {
if (arg2 === tmp4.fps) {
if (canUseStreamSettingDefault(tmp4, arg3, arg4, arg5)) {
iter.return();
let flag = true;
return true;
}
}
}
}
continue;
}
return false;
}
};