decord/source/modules/go_live/utils/canStreamWithSettings.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 10085
// Function ID: 10086
// Name: canStreamWithSettings
// Dependencies: [4683, 10086, 10087, 2]
// Exports: default
// Module 10085 (canStreamWithSettings)
import GoLiveAutoQualityExperiment from "GoLiveAutoQualityExperiment" /* 10086 */;
import canUseStreamSettingDefault from "canUseStreamSetting" /* 10087 */;
import StreamSettingsConstants from "StreamSettingsConstants" /* 4683 */;
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;
}
};