decord/source/modules/go_live/native/ApplicationStreamingManager.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

68 lines
2.9 KiB
TypeScript

// Module ID: 17969
// Function ID: 17970
// Name: ApplicationStreamingManager
// Dependencies: [19, 4682, 4683, 4661, 21, 3, 17970, 4981, 17971, 1896, 10088, 9218, 2]
// Module 17969 (ApplicationStreamingManager)
import LoggerDefault from "Logger" /* 3 */;
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4981 */;
import MobileGoLiveUpsellExperimentDefault from "MobileGoLiveUpsellExperiment" /* 10088 */;
import noop from "module_19" /* 19 */;
import ApplicationStreamingSettingsStore from "ApplicationStreamingSettingsStore" /* 4682 */;
import ApplicationStreamingManager from "go_live/ApplicationStreamingManager" /* 17970 */;
const require = fn;
const ApplicationStreamPresets = fn(4683).ApplicationStreamPresets;
const MediaEngineContextTypes = fn(4661).MediaEngineContextTypes;
const jsx = fn(21).jsx;
let obj = new LoggerDefault("ApplicationStreamingManager");
obj.enableNativeLogger(true);
class ApplicationStreamingManager extends tmp4 {
}
const prototype = ApplicationStreamingManager.prototype;
prototype["platformShowStreamFull"] = function platformShowStreamFull() {
actions_AlertActionCreatorsDefault.openLazy({
importer() {
return require("asyncRequireImpl")(paths[8], paths.paths).then((result) => {
closure_0 = result.default;
return (arg0) => {
const merged = Object.assign(arg0);
return closure_2_6(closure_0, {});
};
});
}
});
};
prototype["platformHandleStreamStart"] = function platformHandleStreamStart(sourceId) {
sourceId = sourceId.sourceId;
if (null != sourceId) {
let setGoLiveSource = importDefault;
obj = MobileGoLiveUpsellExperimentDefault;
if (obj.getConfig({ location: "platformHandleStreamStart" }).showMobileGoLiveUpsell) {
let state = ApplicationStreamingSettingsStore.getState();
} else {
state = { preset: ApplicationStreamPresets.PRESET_CUSTOM, resolution: 720, fps: 30, soundshareEnabled: true };
}
({ preset, resolution, fps, soundshareEnabled } = state);
setGoLiveSource = setGoLiveSource(9218).setGoLiveSource;
const obj2 = { desktopSettings: null, qualityOptions: null, context: null };
const obj3 = { sourceId, sound: soundshareEnabled };
obj2.desktopSettings = obj3;
const obj4 = { preset, resolution, frameRate: fps };
obj2.qualityOptions = obj4;
obj2.context = MediaEngineContextTypes.STREAM;
setGoLiveSource(obj2);
const setGoLiveSourceResult = setGoLiveSource(9218);
} else {
const _HermesInternal = HermesInternal;
obj.warn("invalid start_stream: both application + display modes were specified (source-id: " + sourceId + ")");
}
};
prototype["platformHandleVoiceStateUpdate"] = function platformHandleVoiceStateUpdate() {
};
const applicationStreamingManager = new ApplicationStreamingManager();
const size = fn(2);
const result = size.fileFinishedImporting("modules/go_live/native/ApplicationStreamingManager.tsx");
export default applicationStreamingManager;