decord/source/actions/RTCDebugActionCreators.tsx

53 lines
2 KiB
TypeScript
Raw Normal View History

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