decord/source/actions/RTCDebugActionCreators.tsx
2026-08-24 06:08:38 +00:00

53 lines
2.2 KiB
TypeScript

// Module ID: 12651
// Function ID: 12652
// Name: open
// Dependencies: [12650, 709, 9697, 4007, 2]
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 12651 (open)
import dispatcherDefault from "dispatcher" /* 709 */;
import setDefault from "set" /* 4007 */;
import trackVoiceAndVideoDebuggingSettingsUpdatedDefault from "trackVoiceAndVideoDebuggingSettingsUpdated" /* 9697 */;
import closure_2 from "updateStats" /* 12650 */;
const result = require("set").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
export const open = function open(section) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
dispatcherDefault.dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
};
export const close = function close() {
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
};
export const openReplay = function openReplay() {
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
};
export const setSection = function setSection(section) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_MODAL_SET_SECTION", section };
obj.dispatch(obj);
};
export const setShouldRecordNextConnection = function setShouldRecordNextConnection(value) {
trackVoiceAndVideoDebuggingSettingsUpdatedDefault("connection_replay_log_enabled", value, closure_2.shouldRecordNextConnection());
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_SET_RECORDING_FLAG", value };
obj.dispatch(obj);
};
export const setSimulcastDebugOverride = function setSimulcastDebugOverride(userId, context, quality) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_SET_SIMULCAST_OVERRIDE", userId, context, quality };
obj.dispatch(obj);
};
export const chooseReplayPath = function chooseReplayPath() {
const fileManager = setDefault.fileManager;
const items = [{ name: "All Files", extensions: ["*"] }];
fileManager.showOpenDialog({ filters: items }).then((arg0) => {
let str = "";
if (0 !== arg0.length) {
str = arg0[0];
}
callback(table[1]).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH", path: str });
});
};