decord/source/actions/RTCDebugActionCreators.tsx
2026-07-27 11:26:19 +00:00

52 lines
2 KiB
TypeScript

// Module ID: 10769
// Function ID: 83608
// Name: open
// Dependencies: [10768, 686, 8774, 3742, 2]
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 10769 (open)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const result = require("trackVoiceAndVideoDebuggingSettingsUpdated").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
export const open = function open(section) {
let obj = importDefault(686);
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
importDefault(686).dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
};
export const close = function close() {
importDefault(686).dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
};
export const openReplay = function openReplay() {
importDefault(686).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
};
export const setSection = function setSection(section) {
let obj = importDefault(686);
obj = { type: "RTC_DEBUG_MODAL_SET_SECTION", section };
obj.dispatch(obj);
};
export const setShouldRecordNextConnection = function setShouldRecordNextConnection(value) {
importDefault(8774)("connection_replay_log_enabled", value, _isNativeReflectConstruct.shouldRecordNextConnection());
let obj = importDefault(686);
obj = { type: "RTC_DEBUG_SET_RECORDING_FLAG", value };
obj.dispatch(obj);
};
export const setSimulcastDebugOverride = function setSimulcastDebugOverride(userId, context, quality) {
let obj = importDefault(686);
obj = { type: "RTC_DEBUG_SET_SIMULCAST_OVERRIDE", userId, context, quality };
obj.dispatch(obj);
};
export const chooseReplayPath = function chooseReplayPath() {
const fileManager = importDefault(3742).fileManager;
const items = [{ name: "All Files", extensions: ["*"] }];
fileManager.showOpenDialog({ filters: items }).then((arg0) => {
let str = "";
if (0 !== arg0.length) {
str = arg0[0];
}
let obj = outer1_0(outer1_1[1]);
obj = { type: "RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH", path: str };
obj.dispatch(obj);
});
};