Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
68 lines
2.9 KiB
TypeScript
68 lines
2.9 KiB
TypeScript
// Module ID: 17947
|
|
// Function ID: 17948
|
|
// Name: ApplicationStreamingManager
|
|
// Dependencies: [19, 4651, 4652, 4630, 21, 3, 17948, 4950, 17949, 1896, 10028, 9158, 2]
|
|
|
|
// Module 17947 (ApplicationStreamingManager)
|
|
import LoggerDefault from "Logger" /* 3 */;
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4950 */;
|
|
import MobileGoLiveUpsellExperimentDefault from "MobileGoLiveUpsellExperiment" /* 10028 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ApplicationStreamingSettingsStore from "ApplicationStreamingSettingsStore" /* 4651 */;
|
|
import ApplicationStreamingManager from "go_live/ApplicationStreamingManager" /* 17948 */;
|
|
|
|
const require = fn;
|
|
const ApplicationStreamPresets = fn(4652).ApplicationStreamPresets;
|
|
const MediaEngineContextTypes = fn(4630).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(9158).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(9158);
|
|
} 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;
|