decord/source/modules/go_live/native/ApplicationStreamingManager.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

77 lines
2.9 KiB
TypeScript

// Module ID: 17773
// Function ID: 17774
// Name: platformShowStreamFull
// Dependencies: [19, 4575, 4540, 4545, 21, 3, 17774, 4866, 17775, 2008, 9887, 9019, 2]
// Module 17773 (platformShowStreamFull)
import timestampDefault from "timestamp" /* 3 */;
import noopAll from "noop" /* 19 */;
import _modDef4866 from "module_4866" /* 4866 */;
import apexExperimentDefault from "apexExperiment" /* 9887 */;
import updateRegionDefault from "updateRegion" /* 17774 */;
import closure_3 from "ApplicationStreamPresets" /* 4575 */;
import { ApplicationStreamPresets } from "RESOLUTION_720" /* 4540 */;
import { MediaEngineContextTypes } from "DesktopSources" /* 4545 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
noopAll;
let obj = new timestampDefault("ApplicationStreamingManager");
obj.enableNativeLogger(true);
updateRegionDefault;
class ApplicationStreamingManager extends tmp4 {
}
const prototype = ApplicationStreamingManager.prototype;
prototype["platformShowStreamFull"] = function platformShowStreamFull() {
obj = _modDef4866;
obj = {
importer() {
return callback(paths[9])(paths[8], paths.paths).then((arg0) => {
closure_0 = arg0.default;
return (arg0) => {
const merged = Object.assign(arg0);
return closure_1_6(closure_0, {});
};
});
}
};
obj.openLazy(obj);
};
prototype["platformHandleStreamStart"] = function platformHandleStreamStart(sourceId) {
sourceId = sourceId.sourceId;
if (null != sourceId) {
let setGoLiveSource = importDefault;
obj = apexExperimentDefault;
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);
setGoLiveSource = setGoLiveSource(9019).setGoLiveSource;
obj = { desktopSettings: null, qualityOptions: null, context: null };
obj = { sourceId: null, sound: null };
obj[0] = sourceId;
obj[1] = soundshareEnabled;
obj[0] = obj;
obj1 = { preset: null, resolution: null, frameRate: null };
obj1[0] = preset;
obj1[1] = resolution;
obj1[2] = fps;
obj[1] = obj1;
obj[2] = MediaEngineContextTypes.STREAM;
setGoLiveSource(obj);
const setGoLiveSourceResult = setGoLiveSource(9019);
} 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();
const result = require("set").fileFinishedImporting("modules/go_live/native/ApplicationStreamingManager.tsx");
export default applicationStreamingManager;