2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 10975
|
|
|
|
|
// Function ID: 10976
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getGoLiveAutoQualityExperimentConfig
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1212, 4567, 4529, 1368, 589, 595, 9899, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: getGoLiveAutoQualityExperimentConfig, maybeMigrateToAutoQuality, useGoLiveAutoQualityExperimentConfig
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 10975 (getGoLiveAutoQualityExperimentConfig)
|
|
|
|
|
import Storage3 from "Storage" /* 595 */;
|
|
|
|
|
import closure_2 from "initialize" /* 1212 */;
|
|
|
|
|
import closure_3 from "ApplicationStreamPresets" /* 4567 */;
|
|
|
|
|
import { ApplicationStreamPresets } from "RESOLUTION_720" /* 4529 */;
|
|
|
|
|
import importDefaultResult from "getUnitId" /* 1368 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { allowAutoQuality: false, defaultAutoQuality: false, migrateAutoQuality: false };
|
2026-07-29 08:29:29 +00:00
|
|
|
const GoLiveAutoQualityMigrationVersion = "GoLiveAutoQualityMigrationVersion";
|
|
|
|
|
obj = { name: "2025-10-go-live-auto-quality", kind: "user", defaultConfig: obj, variations: null };
|
|
|
|
|
obj = { 1: null, 2: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj1 = {};
|
|
|
|
|
const merged = Object.assign(obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1.allowAutoQuality = true;
|
|
|
|
|
obj1.migrateAutoQuality = true;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj[1] = obj1;
|
|
|
|
|
const obj2 = {};
|
|
|
|
|
const merged1 = Object.assign(obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj2.allowAutoQuality = true;
|
|
|
|
|
obj2.defaultAutoQuality = true;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj[2] = obj2;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[3] = obj;
|
2026-08-24 06:08:38 +00:00
|
|
|
let closure_6 = importDefaultResult(obj);
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/go_live/GoLiveAutoQualityExperiment.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const getGoLiveAutoQualityExperimentConfig = function getGoLiveAutoQualityExperimentConfig(location) {
|
|
|
|
|
return store.getConfig({ location: location.location });
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const useGoLiveAutoQualityExperimentConfig = function useGoLiveAutoQualityExperimentConfig(location) {
|
2026-07-23 10:11:24 +00:00
|
|
|
location = location.location;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_2];
|
|
|
|
|
return location(589).useStateFromStores(items, () => closure_1_6.getConfig({ location }));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const maybeMigrateToAutoQuality = function maybeMigrateToAutoQuality() {
|
2026-08-24 06:08:38 +00:00
|
|
|
const Storage = Storage3.Storage;
|
2026-07-29 08:29:29 +00:00
|
|
|
let num = Storage.get(GoLiveAutoQualityMigrationVersion);
|
|
|
|
|
if (num == null) {
|
|
|
|
|
num = 0;
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
if (store.getConfig({ location: "maybeMigrateToAutoQuality" }).migrateAutoQuality) {
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp4 < 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-29 08:29:29 +00:00
|
|
|
const obj = { preset: null, resolution: null, frameRate: null, soundshareEnabled: null, noTrack: true };
|
|
|
|
|
obj[0] = tmp9.PRESET_AUTO;
|
|
|
|
|
({ resolution: obj2[1], fps: obj2[2], soundshareEnabled: obj2[3] } = state);
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp(9899).updateStreamSettings(obj);
|
2026-07-29 08:29:29 +00:00
|
|
|
const Storage2 = tmp(595).Storage;
|
|
|
|
|
const result = Storage2.set(GoLiveAutoQualityMigrationVersion, 1);
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult = tmp(9899);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|