decord/source/utils/RTCConnectionUtils.tsx

79 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10770
// Function ID: 83617
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 1212, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 10770
2026-07-23 10:11:24 +00:00
import ME from "ME";
let closure_2;
let closure_3;
({ RTCConnectionStates: closure_2, ConnectionStatus: closure_3 } = ME);
const result = require("set").fileFinishedImporting("utils/RTCConnectionUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
getStatus(arg0) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
if (constants.CONNECTING === arg0) {
let ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl10 = require(1212) /* getSystemLocale */.intl;
let stringResult = intl10.string(require(1212) /* getSystemLocale */.t.MzW9sN);
2026-07-20 16:05:17 +00:00
} else if (constants.AUTHENTICATING === arg0) {
ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl9 = require(1212) /* getSystemLocale */.intl;
stringResult = intl9.string(require(1212) /* getSystemLocale */.t.GxXwE2);
2026-07-20 16:05:17 +00:00
} else if (constants.AWAITING_ENDPOINT === arg0) {
ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl8 = require(1212) /* getSystemLocale */.intl;
2026-07-25 08:10:48 +00:00
stringResult = intl8.string(require(1212) /* getSystemLocale */.t.uQle7a);
2026-07-20 16:05:17 +00:00
} else if (constants.RTC_CONNECTED === arg0) {
2026-07-23 10:11:24 +00:00
const intl7 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string = intl7.string;
2026-07-23 10:11:24 +00:00
const t = require(1212) /* getSystemLocale */.t;
2026-07-20 16:05:17 +00:00
if (flag) {
let stringResult1 = string(t.HtVOdd);
} else {
stringResult1 = string(t.daXg45);
}
stringResult = stringResult1;
ERROR = constants2.CONNECTED;
} else if (constants.RTC_CONNECTING === arg0) {
ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl6 = require(1212) /* getSystemLocale */.intl;
stringResult = intl6.string(require(1212) /* getSystemLocale */.t.Gp51dl);
2026-07-20 16:05:17 +00:00
} else if (constants.ICE_CHECKING === arg0) {
ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl5 = require(1212) /* getSystemLocale */.intl;
stringResult = intl5.string(require(1212) /* getSystemLocale */.t["rdCyA/"]);
2026-07-20 16:05:17 +00:00
} else if (constants.DTLS_CONNECTING === arg0) {
ERROR = constants2.CONNECTING;
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
stringResult = intl4.string(require(1212) /* getSystemLocale */.t.UvB3gV);
2026-07-20 16:05:17 +00:00
} else if (constants.NO_ROUTE === arg0) {
ERROR = constants2.ERROR;
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
stringResult = intl3.string(require(1212) /* getSystemLocale */.t.mGhOIi);
2026-07-20 16:05:17 +00:00
} else if (constants.RTC_DISCONNECTED === arg0) {
ERROR = constants2.ERROR;
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
stringResult = intl2.string(require(1212) /* getSystemLocale */.t.M7LDmE);
2026-07-20 16:05:17 +00:00
} else {
const DISCONNECTED = constants.DISCONNECTED;
ERROR = constants2.ERROR;
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
stringResult = intl.string(require(1212) /* getSystemLocale */.t.NLKQbx);
2026-07-20 16:05:17 +00:00
}
const obj = { connectionStatus: ERROR, connectionStatusText: stringResult };
return obj;
},
getShortHostname(hostname) {
let str = "";
if (null != hostname) {
str = hostname.split(".")[0];
}
return str;
}
};