decord/source/modules/calls/useHideSelfVideo.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

47 lines
1.6 KiB
TypeScript

// Module ID: 17213
// Function ID: 17214
// Name: useHideSelfVideo
// Dependencies: [502, 1908, 1074, 4585, 504, 9089, 2]
// Exports: default
// Module 17213 (useHideSelfVideo)
import closure_3 from "fetchFingerprint" /* 502 */;
import closure_4 from "_detectH265HardwareDecode" /* 1908 */;
import { VideoToggleState } from "ME" /* 1074 */;
import DesktopSources from "DesktopSources" /* 4585 */;
const require = arg1;
({ MediaEngineContextTypes: closure_6, Features: error } = DesktopSources);
const result = require("set").fileFinishedImporting("modules/calls/useHideSelfVideo.tsx");
export default function useHideSelfVideo(arg0) {
let DEFAULT = arg1;
if (arg1 === undefined) {
DEFAULT = constants.DEFAULT;
}
let stateFromStores;
const items = [closure_3];
stateFromStores = DEFAULT(504).useStateFromStores(items, () => id.getId());
const obj = DEFAULT(504);
const items1 = [closure_4];
const stateFromStores1 = DEFAULT(504).useStateFromStores(items1, () => closure_4.supports(constants.DISABLE_VIDEO));
const obj2 = DEFAULT(504);
const items2 = [closure_4];
const items3 = [stateFromStores, DEFAULT];
let tmp5 = null == arg0;
const stateFromStores2 = DEFAULT(504).useStateFromStores(items2, () => closure_1_4.isLocalVideoDisabled(stateFromStores, DEFAULT), items3);
if (!tmp5) {
tmp5 = arg0 === stateFromStores;
}
if (tmp5) {
tmp5 = stateFromStores1;
}
const items4 = [
tmp5,
stateFromStores2,
(arg0) => {
stateFromStores(closure_1_2[5]).setDisableLocalVideo(stateFromStores, arg0 ? closure_1_5.DISABLED : closure_1_5.MANUAL_ENABLED, DEFAULT);
}
];
return items4;
};