decord/source/modules/rtc/hooks/useIsEmptyRTCConnection.tsx

52 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 8923
// Function ID: 8924
2026-07-29 08:29:29 +00:00
// Name: useIsStreamRTCConnectionEmpty
2026-07-31 08:44:05 +00:00
// Dependencies: [1218, 4265, 4279, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
2026-07-31 08:44:05 +00:00
// Module 8923 (useIsStreamRTCConnectionEmpty)
2026-07-29 08:29:29 +00:00
import fetchFingerprint from "fetchFingerprint";
import createRTCConnection from "createRTCConnection";
import initialize from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("initialize").fileFinishedImporting("modules/rtc/hooks/useIsEmptyRTCConnection.tsx");
2026-07-20 16:05:17 +00:00
export const useIsStreamRTCConnectionEmpty = function useIsStreamRTCConnectionEmpty(stateFromStores4) {
2026-07-23 10:11:24 +00:00
const _require = stateFromStores4;
2026-07-29 08:29:29 +00:00
const items = [initialize, fetchFingerprint];
return _require(589).useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
if (null == closure_0) {
2026-07-20 16:05:17 +00:00
return true;
} else {
2026-07-29 08:29:29 +00:00
const userIds = outer1_4.getUserIds(tmp);
let tmp3 = null == userIds;
if (!tmp3) {
let tmp6 = 0 === userIds.size;
if (!tmp6) {
tmp6 = 1 === userIds.size && userIds.has(tmp5);
const tmp7 = 1 === userIds.size && userIds.has(tmp5);
}
tmp3 = tmp6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3;
2026-07-20 16:05:17 +00:00
}
});
};
export const useIsCallRTCConnectionEmpty = function useIsCallRTCConnectionEmpty() {
2026-07-29 08:29:29 +00:00
const items = [createRTCConnection, fetchFingerprint];
return require(589) /* initialize */.useStateFromStores(items, () => {
userIds = userIds.getUserIds();
let tmp = null == userIds;
if (!tmp) {
let tmp4 = 0 === userIds.size;
if (!tmp4) {
tmp4 = 1 === userIds.size && userIds.has(tmp3);
const tmp5 = 1 === userIds.size && userIds.has(tmp3);
}
tmp = tmp4;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
2026-07-20 16:05:17 +00:00
});
};