decord/source/modules/go_live/utils/canStreamWithSettings.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

39 lines
1.4 KiB
TypeScript

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