decord/source/modules/go_live/native/ApplicationStreamingManager.tsx

78 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 17350
// Function ID: 17351
2026-07-29 08:29:29 +00:00
// Name: platformShowStreamFull
2026-08-27 16:17:25 +00:00
// Dependencies: [19, 4537, 4504, 4509, 21, 3, 17351, 4810, 17352, 2009, 9969, 9702, 2]
2026-07-20 16:05:17 +00:00
2026-08-27 16:17:25 +00:00
// Module 17350 (platformShowStreamFull)
2026-08-24 06:08:38 +00:00
import timestampDefault from "timestamp" /* 3 */;
import noopAll from "noop" /* 19 */;
2026-08-27 16:17:25 +00:00
import _modDef4810 from "module_4810" /* 4810 */;
import apexExperimentDefault from "apexExperiment" /* 9969 */;
import updateRegionDefault from "updateRegion" /* 17351 */;
import closure_3 from "ApplicationStreamPresets" /* 4537 */;
import { ApplicationStreamPresets } from "RESOLUTION_720" /* 4504 */;
import { MediaEngineContextTypes } from "DesktopSources" /* 4509 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
let obj = new timestampDefault("ApplicationStreamingManager");
2026-07-29 08:29:29 +00:00
obj.enableNativeLogger(true);
2026-08-24 06:08:38 +00:00
updateRegionDefault;
2026-07-29 08:29:29 +00:00
class ApplicationStreamingManager extends tmp4 {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = ApplicationStreamingManager.prototype;
prototype["platformShowStreamFull"] = function platformShowStreamFull() {
2026-08-27 16:17:25 +00:00
obj = _modDef4810;
2026-07-29 08:29:29 +00:00
obj = {
importer() {
return callback(paths[9])(paths[8], paths.paths).then((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0.default;
2026-07-29 08:29:29 +00:00
return (arg0) => {
const merged = Object.assign(arg0);
2026-08-24 06:08:38 +00:00
return closure_1_6(closure_0, {});
2026-07-29 08:29:29 +00:00
};
});
}
};
obj.openLazy(obj);
};
prototype["platformHandleStreamStart"] = function platformHandleStreamStart(sourceId) {
sourceId = sourceId.sourceId;
if (null != sourceId) {
let setGoLiveSource = importDefault;
2026-08-24 06:08:38 +00:00
obj = apexExperimentDefault;
2026-07-29 08:29:29 +00:00
if (obj.getConfig({ location: "platformHandleStreamStart" }).showMobileGoLiveUpsell) {
state = state.getState();
} else {
state = { preset: null, resolution: 720, fps: 30, soundshareEnabled: true };
state[0] = ApplicationStreamPresets.PRESET_CUSTOM;
}
({ preset, resolution, fps, soundshareEnabled } = state);
2026-08-27 16:17:25 +00:00
setGoLiveSource = setGoLiveSource(9702).setGoLiveSource;
2026-07-29 08:29:29 +00:00
obj = { desktopSettings: null, qualityOptions: null, context: null };
obj = { sourceId: null, sound: null };
obj[0] = sourceId;
obj[1] = soundshareEnabled;
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj1 = { preset: null, resolution: null, frameRate: null };
2026-07-29 08:29:29 +00:00
obj1[0] = preset;
obj1[1] = resolution;
obj1[2] = fps;
obj[1] = obj1;
obj[2] = MediaEngineContextTypes.STREAM;
setGoLiveSource(obj);
2026-08-27 16:17:25 +00:00
const setGoLiveSourceResult = setGoLiveSource(9702);
2026-07-29 08:29:29 +00:00
} else {
const _HermesInternal = HermesInternal;
obj.warn("invalid start_stream: both application + display modes were specified (source-id: " + sourceId + ")");
}
};
prototype["platformHandleVoiceStateUpdate"] = function platformHandleVoiceStateUpdate(arg0) {
};
const applicationStreamingManager = new ApplicationStreamingManager();
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/go_live/native/ApplicationStreamingManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default applicationStreamingManager;