decord/source/actions/RTCDebugActionCreators.tsx
2026-08-08 06:10:11 +00:00

50 lines
2 KiB
TypeScript

// Module ID: 10919
// Function ID: 10920
// Name: open
// Dependencies: [10918, 709, 9159, 3912, 2]
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 10919 (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(9159)("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(3912).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 });
});
};