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

77 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 16794
// Function ID: 16795
2026-07-29 08:29:29 +00:00
// Name: platformShowStreamFull
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 4344, 4310, 4315, 21, 3, 16795, 4594, 16796, 1959, 10698, 9049, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 16794 (platformShowStreamFull)
2026-07-29 08:29:29 +00:00
import "noop";
import ApplicationStreamPresets from "ApplicationStreamPresets";
import { ApplicationStreamPresets } from "RESOLUTION_720";
2026-07-23 10:11:24 +00:00
import { MediaEngineContextTypes } from "DesktopSources";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import "updateRegion";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let obj = new require("DesktopSources")("ApplicationStreamingManager");
obj.enableNativeLogger(true);
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-05 07:35:12 +00:00
let obj = importDefault(4594);
2026-07-29 08:29:29 +00:00
obj = {
importer() {
return callback(paths[9])(paths[8], paths.paths).then((arg0) => {
let closure_0 = arg0.default;
return (arg0) => {
const merged = Object.assign(arg0);
return outer1_6(closure_0, {});
};
});
}
};
obj.openLazy(obj);
};
prototype["platformHandleStreamStart"] = function platformHandleStreamStart(sourceId) {
let fps;
let preset;
let resolution;
let soundshareEnabled;
sourceId = sourceId.sourceId;
if (null != sourceId) {
let setGoLiveSource = importDefault;
2026-08-05 07:35:12 +00:00
let obj = importDefault(10698);
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-05 07:35:12 +00:00
setGoLiveSource = setGoLiveSource(9049).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;
const 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);
2026-08-05 07:35:12 +00:00
const setGoLiveSourceResult = setGoLiveSource(9049);
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();
const result = require("RESOLUTION_720").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;