decord/source/modules/calls/useHideSelfVideo.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

47 lines
1.6 KiB
TypeScript

// Module ID: 17133
// Function ID: 17134
// Name: useHideSelfVideo
// Dependencies: [1215, 4532, 673, 4545, 586, 9019, 2]
// Exports: default
// Module 17133 (useHideSelfVideo)
import closure_3 from "fetchFingerprint" /* 1215 */;
import closure_4 from "_detectH265HardwareDecode" /* 4532 */;
import { VideoToggleState } from "ME" /* 673 */;
import DesktopSources from "DesktopSources" /* 4545 */;
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(586).useStateFromStores(items, () => id.getId());
const obj = DEFAULT(586);
const items1 = [closure_4];
const stateFromStores1 = DEFAULT(586).useStateFromStores(items1, () => closure_4.supports(constants.DISABLE_VIDEO));
const obj2 = DEFAULT(586);
const items2 = [closure_4];
const items3 = [stateFromStores, DEFAULT];
let tmp5 = null == arg0;
const stateFromStores2 = DEFAULT(586).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;
};