decord/source/modules/go_live/StreamRTCConnection.tsx

143 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4220
2026-07-27 11:26:19 +00:00
// Function ID: 36791
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [15, 17, 102, 18, 6, 7, 4184, 4200, 4221, 1194, 1348, 4222, 4178, 4223, 4203, 4224, 653, 4192, 664, 4195, 4225, 4016, 4226, 22, 686, 4227, 4228, 4301, 675, 4125, 4307, 4207, 4308, 4309, 4189, 5903, 4205, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4220 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import DesktopSources from "DesktopSources";
import _get from "_get";
import set from "set";
import closure_7 from "_isNativeReflectConstruct";
import getSystemAnalyticsInfo from "getSystemAnalyticsInfo";
import closure_9 from "_isNativeReflectConstruct";
import { getSystemAnalyticsInfo } from "getSystemAnalyticsInfo";
import closure_11 from "_isNativeReflectConstruct";
import closure_12 from "_isNativeReflectConstruct";
import closure_13 from "_isNativeReflectConstruct";
import closure_14 from "_isNativeReflectConstruct";
import closure_15 from "_isNativeReflectConstruct";
import closure_16 from "_isNativeReflectConstruct";
import closure_17 from "_isNativeReflectConstruct";
import closure_18 from "_isNativeReflectConstruct";
import ME from "ME";
import { MediaEngineContextTypes } from "DesktopSources";
import tmp4 from "_createForOfIteratorHelperLoose";
let closure_19;
let closure_20;
let closure_21;
const require = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
2026-07-23 10:11:24 +00:00
({ AnalyticEvents: closure_19, MediaEngineHookTypes: closure_20, RTCConnectionStates: closure_21 } = ME);
let closure_23 = 5 * require("set").Millis.SECOND;
2026-07-20 16:05:17 +00:00
let closure_24 = { DETACHED: 0, [0]: "DETACHED", WAITING: 1, [1]: "WAITING", ATTACHED: 2, [2]: "ATTACHED", STARTED: 3, [3]: "STARTED", PLAYING: 4, [4]: "PLAYING", SILENCE: 5, [5]: "SILENCE" };
2026-07-23 10:11:24 +00:00
let tmp3 = (() => {
2026-07-20 16:05:17 +00:00
class StreamRTCAnalyticsContext {
constructor(arg0) {
({ streamApplication, numViewers, analyticsLocations } = arg0);
({ streamRegion, streamSourceType, actionContext, goLiveModalDurationMs } = arg0);
2026-07-23 10:11:24 +00:00
tmp = outer1_7(this, StreamRTCAnalyticsContext);
2026-07-20 16:05:17 +00:00
this.streamRegion = streamRegion;
this.streamApplication = streamApplication;
items = [];
items[0] = streamApplication;
this.streamApplicationHistory = items;
this.streamSourceType = streamSourceType;
this.actionContext = actionContext;
this.maxViewers = numViewers;
this.goLiveModalDurationMs = goLiveModalDurationMs;
this.numViewers = numViewers;
if (null == analyticsLocations) {
analyticsLocations = [];
}
this.analyticsLocations = analyticsLocations;
return;
}
}
let obj = {
key: "setActionContext",
value(actionContext) {
this.actionContext = actionContext;
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , , , , , , , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "updateStreamApplication",
value(streamApplication) {
this.streamApplication = streamApplication;
const items = [...this.streamApplicationHistory, streamApplication];
this.streamApplicationHistory = items;
}
};
items[1] = obj;
obj = {
key: "setAnalyticsLocations",
value(analyticsLocations) {
this.analyticsLocations = analyticsLocations;
}
};
items[2] = obj;
items[3] = {
key: "trackViewerCount",
value(numViewers) {
this.maxViewers = Math.max(numViewers, this.maxViewers);
this.numViewers = numViewers;
}
};
items[4] = {
key: "setNativePickerStyleUsed",
value(nativePickerStyleUsed) {
this.nativePickerStyleUsed = nativePickerStyleUsed;
}
};
items[5] = {
key: "trackStart",
value() {
this.startTime = performance.now();
}
};
items[6] = {
key: "trackEnd",
value() {
this.endTime = performance.now();
}
};
items[7] = {
key: "getStreamApplicationFromHistory",
value(arg0) {
return this.streamApplicationHistory[arg0];
}
};
items[8] = {
key: "getDuration",
value() {
const self = this;
if (null == this.startTime) {
return null;
} else {
const _performance = performance;
let nowResult = performance.now();
const endTime = self.endTime;
if (null != endTime) {
nowResult = endTime;
}
return nowResult - self.startTime;
}
}
};
return callback2(StreamRTCAnalyticsContext, items);
2026-07-23 10:11:24 +00:00
})();
let result = require("_get").fileFinishedImporting("modules/go_live/StreamRTCConnection.tsx");
2026-07-20 16:05:17 +00:00
export default tmp4;
export const StreamRTCAnalyticsContext = tmp3;