decord/source/modules/calls/useHideSelfVideo.tsx

50 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 16032
// Function ID: 16033
2026-07-20 16:05:17 +00:00
// Name: useHideSelfVideo
2026-07-29 08:29:29 +00:00
// Dependencies: [1218, 4236, 676, 4250, 589, 8838, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 16032 (useHideSelfVideo)
import fetchFingerprint from "fetchFingerprint";
import _detectH265HardwareDecode from "_detectH265HardwareDecode";
2026-07-23 10:11:24 +00:00
import { VideoToggleState } from "ME";
import DesktopSources from "DesktopSources";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ MediaEngineContextTypes: closure_6, Features: error } = DesktopSources);
2026-07-23 10:11:24 +00:00
const result = require("ME").fileFinishedImporting("modules/calls/useHideSelfVideo.tsx");
2026-07-20 16:05:17 +00:00
export default function useHideSelfVideo(arg0) {
let DEFAULT = arg1;
if (arg1 === undefined) {
DEFAULT = constants.DEFAULT;
}
2026-07-23 10:11:24 +00:00
let stateFromStores;
2026-07-29 08:29:29 +00:00
const items = [fetchFingerprint];
stateFromStores = DEFAULT(589).useStateFromStores(items, () => id.getId());
const obj = DEFAULT(589);
const items1 = [_detectH265HardwareDecode];
const stateFromStores1 = DEFAULT(589).useStateFromStores(items1, () => _detectH265HardwareDecode.supports(constants.DISABLE_VIDEO));
const obj2 = DEFAULT(589);
const items2 = [_detectH265HardwareDecode];
2026-07-20 16:05:17 +00:00
const items3 = [stateFromStores, DEFAULT];
let tmp5 = null == arg0;
2026-07-29 08:29:29 +00:00
const stateFromStores2 = DEFAULT(589).useStateFromStores(items2, () => outer1_4.isLocalVideoDisabled(stateFromStores, DEFAULT), items3);
2026-07-20 16:05:17 +00:00
if (!tmp5) {
tmp5 = arg0 === stateFromStores;
}
if (tmp5) {
tmp5 = stateFromStores1;
}
const items4 = [
tmp5,
stateFromStores2,
(arg0) => {
2026-07-23 10:11:24 +00:00
stateFromStores(outer1_2[5]).setDisableLocalVideo(stateFromStores, arg0 ? outer1_5.DISABLED : outer1_5.MANUAL_ENABLED, DEFAULT);
2026-07-20 16:05:17 +00:00
}
];
return items4;
};