Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
61 lines
2.7 KiB
TypeScript
61 lines
2.7 KiB
TypeScript
// Module ID: 10213
|
|
// Function ID: 10214
|
|
// Name: GoLiveAutoQualityExperiment
|
|
// Dependencies: [1235, 4802, 4803, 1435, 504, 510, 4898, 2]
|
|
// Exports: getGoLiveAutoQualityExperimentConfig, maybeMigrateToAutoQuality, useGoLiveAutoQualityExperimentConfig
|
|
|
|
// Module 10213 (GoLiveAutoQualityExperiment)
|
|
import Storage3 from "Storage" /* 510 */;
|
|
import ApexExperimentStore from "ApexExperimentStore" /* 1235 */;
|
|
import ApplicationStreamingSettingsStore from "ApplicationStreamingSettingsStore" /* 4802 */;
|
|
import ApexExperiment from "apex/ApexExperiment" /* 1435 */;
|
|
|
|
require = fn;
|
|
const ApplicationStreamPresets = fn(4803).ApplicationStreamPresets;
|
|
let obj = { allowAutoQuality: false, defaultAutoQuality: false, migrateAutoQuality: false };
|
|
const GoLiveAutoQualityMigrationVersion = "GoLiveAutoQualityMigrationVersion";
|
|
const obj2 = { name: "2025-10-go-live-auto-quality", kind: "user", defaultConfig: obj, variations: null };
|
|
const obj3 = { 1: null, 2: null };
|
|
const obj4 = {};
|
|
const merged = Object.assign(obj);
|
|
obj4.allowAutoQuality = true;
|
|
obj4.migrateAutoQuality = true;
|
|
obj3[1] = obj4;
|
|
const obj5 = {};
|
|
const merged1 = Object.assign(obj);
|
|
obj5.allowAutoQuality = true;
|
|
obj5.defaultAutoQuality = true;
|
|
obj3[2] = obj5;
|
|
obj2.variations = obj3;
|
|
let closure_6 = ApexExperiment(obj2);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/go_live/GoLiveAutoQualityExperiment.tsx");
|
|
|
|
export const getGoLiveAutoQualityExperimentConfig = function getGoLiveAutoQualityExperimentConfig(location) {
|
|
return closure_6.getConfig({ location: location.location });
|
|
};
|
|
export const useGoLiveAutoQualityExperimentConfig = function useGoLiveAutoQualityExperimentConfig(location) {
|
|
location = location.location;
|
|
const items = [ApexExperimentStore];
|
|
return location(504).useStateFromStores(items, () => config.getConfig({ location }));
|
|
};
|
|
export const maybeMigrateToAutoQuality = function maybeMigrateToAutoQuality() {
|
|
const Storage = Storage3.Storage;
|
|
let num = Storage.get(GoLiveAutoQualityMigrationVersion);
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
if (closure_6.getConfig({ location: "maybeMigrateToAutoQuality" }).migrateAutoQuality) {
|
|
if (tmp4 < 1) {
|
|
const state = ApplicationStreamingSettingsStore.getState();
|
|
if (state.preset !== ApplicationStreamPresets.PRESET_CUSTOM) {
|
|
const obj = { preset: tmp9.PRESET_AUTO, resolution: null, frameRate: null, soundshareEnabled: null, noTrack: true };
|
|
({ resolution: obj2.resolution, fps: obj2.frameRate, soundshareEnabled: obj2.soundshareEnabled } = state);
|
|
tmp(4898).updateStreamSettings(obj);
|
|
const Storage2 = tmp(510).Storage;
|
|
const result = Storage2.set(GoLiveAutoQualityMigrationVersion, 1);
|
|
const tmpResult = tmp(4898);
|
|
}
|
|
}
|
|
}
|
|
};
|