decord/source/actions/RTCDebugActionCreators.tsx
2026-08-05 07:35:12 +00:00

50 lines
2 KiB
TypeScript

// Module ID: 10786
// Function ID: 10787
// Name: open
// Dependencies: [10785, 709, 9053, 3866, 2]
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 10786 (open)
import updateStats from "updateStats";
const result = require("trackVoiceAndVideoDebuggingSettingsUpdated").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
export const open = function open(section) {
let obj = importDefault(709);
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
importDefault(709).dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
};
export const close = function close() {
importDefault(709).dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
};
export const openReplay = function openReplay() {
importDefault(709).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
};
export const setSection = function setSection(section) {
let obj = importDefault(709);
obj = { type: "RTC_DEBUG_MODAL_SET_SECTION", section };
obj.dispatch(obj);
};
export const setShouldRecordNextConnection = function setShouldRecordNextConnection(value) {
importDefault(9053)("connection_replay_log_enabled", value, updateStats.shouldRecordNextConnection());
let obj = importDefault(709);
obj = { type: "RTC_DEBUG_SET_RECORDING_FLAG", value };
obj.dispatch(obj);
};
export const setSimulcastDebugOverride = function setSimulcastDebugOverride(userId, context, quality) {
let obj = importDefault(709);
obj = { type: "RTC_DEBUG_SET_SIMULCAST_OVERRIDE", userId, context, quality };
obj.dispatch(obj);
};
export const chooseReplayPath = function chooseReplayPath() {
const fileManager = importDefault(3866).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 });
});
};