// Module ID: 17938 // Function ID: 17939 // Name: ApplicationStreamingManager // Dependencies: [19, 4652, 4653, 4631, 21, 3, 17939, 4951, 17940, 1896, 10049, 9179, 2] // Module 17938 (ApplicationStreamingManager) import LoggerDefault from "Logger" /* 3 */; import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4951 */; import MobileGoLiveUpsellExperimentDefault from "MobileGoLiveUpsellExperiment" /* 10049 */; import noop from "module_19" /* 19 */; import ApplicationStreamingSettingsStore from "ApplicationStreamingSettingsStore" /* 4652 */; import ApplicationStreamingManager from "go_live/ApplicationStreamingManager" /* 17939 */; const require = fn; const ApplicationStreamPresets = fn(4653).ApplicationStreamPresets; const MediaEngineContextTypes = fn(4631).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(9179).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(9179); } 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;