decord/alpha/source/modules/media_engine/dispatchAutoDisableVideo.tsx

27 lines
927 B
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 5294
// Function ID: 5295
2026-07-20 16:05:17 +00:00
// Name: dispatchAutoDisableVideo
2026-10-09 10:00:15 +00:00
// Dependencies: [5116, 584, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 5294 (dispatchAutoDisableVideo)
2026-10-03 08:58:59 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-09 10:00:15 +00:00
import Constants from "Constants" /* 5116 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let dependencyMap, importDefault;
const MediaEngineContextTypes = Constants.MediaEngineContextTypes;
const result = size.fileFinishedImporting("modules/media_engine/dispatchAutoDisableVideo.tsx");
2026-07-20 16:05:17 +00:00
export default function dispatchAutoDisableVideo(userId, videoToggleState) {
importDefault = userId;
dependencyMap = videoToggleState;
2026-10-03 08:58:59 +00:00
let obj = DispatcherDefault;
obj.wait(() => {
const obj = DispatcherDefault;
const obj2 = { type: "AUDIO_SET_LOCAL_VIDEO_DISABLED", context: MediaEngineContextTypes.DEFAULT, userId, videoToggleState, persist: false, isAutomatic: true };
obj.dispatch(obj2);
2026-07-20 16:05:17 +00:00
});
};