decord/source/modules/go_live/GoLiveAutoQualityExperiment.tsx

59 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10723
// Function ID: 83528
2026-07-20 16:05:17 +00:00
// Name: getGoLiveAutoQualityExperimentConfig
2026-07-23 10:11:24 +00:00
// Dependencies: [1188, 4220, 4185, 1325, 566, 587, 4309, 2]
2026-07-20 16:05:17 +00:00
// Exports: maybeMigrateToAutoQuality, useGoLiveAutoQualityExperimentConfig
2026-07-24 07:16:23 +00:00
// Module 10723 (getGoLiveAutoQualityExperimentConfig)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import { ApplicationStreamPresets } from "makeButton";
import importDefaultResult from "getUnitId";
const require = arg1;
2026-07-20 16:05:17 +00:00
function getGoLiveAutoQualityExperimentConfig(location) {
return store.getConfig({ location: location.location });
}
2026-07-23 10:11:24 +00:00
let obj = { allowAutoQuality: false, defaultAutoQuality: false, migrateAutoQuality: false };
obj = { name: "2025-10-go-live-auto-quality", kind: "user" };
obj.defaultConfig = obj;
2026-07-20 16:05:17 +00:00
obj = {};
const obj1 = {};
const merged = Object.assign(obj);
obj1["allowAutoQuality"] = true;
obj1["migrateAutoQuality"] = true;
obj[1] = obj1;
const obj2 = {};
const merged1 = Object.assign(obj);
obj2["allowAutoQuality"] = true;
obj2["defaultAutoQuality"] = true;
obj[2] = obj2;
obj.variations = obj;
2026-07-23 10:11:24 +00:00
let closure_5 = require("getUnitId")(obj);
let result = require("makeButton").fileFinishedImporting("modules/go_live/GoLiveAutoQualityExperiment.tsx");
2026-07-20 16:05:17 +00:00
export { getGoLiveAutoQualityExperimentConfig };
export const useGoLiveAutoQualityExperimentConfig = function useGoLiveAutoQualityExperimentConfig(location) {
2026-07-23 10:11:24 +00:00
location = location.location;
const items = [_isNativeReflectConstruct];
return location(566).useStateFromStores(items, () => outer1_6({ location }));
2026-07-20 16:05:17 +00:00
};
export const maybeMigrateToAutoQuality = function maybeMigrateToAutoQuality() {
2026-07-23 10:11:24 +00:00
const Storage = require(587) /* Storage */.Storage;
2026-07-20 16:05:17 +00:00
const value = Storage.get("GoLiveAutoQualityMigrationVersion");
if (store.getConfig({ location: "maybeMigrateToAutoQuality" }).migrateAutoQuality) {
if (tmp3 < 1) {
2026-07-23 10:11:24 +00:00
state = state.getState();
2026-07-20 16:05:17 +00:00
if (state.preset !== ApplicationStreamPresets.PRESET_CUSTOM) {
2026-07-23 10:11:24 +00:00
let obj = require(4309) /* isVoiceChannelFull */;
2026-07-20 16:05:17 +00:00
obj = { preset: ApplicationStreamPresets.PRESET_AUTO };
({ resolution: obj2.resolution, fps: obj2.frameRate, soundshareEnabled: obj2.soundshareEnabled } = state);
obj.noTrack = true;
obj.updateStreamSettings(obj);
2026-07-23 10:11:24 +00:00
const Storage2 = require(587) /* Storage */.Storage;
2026-07-20 16:05:17 +00:00
const result = Storage2.set("GoLiveAutoQualityMigrationVersion", 1);
}
}
}
};