decord/source/actions/RTCDebugActionCreators.tsx

51 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 10786
// Function ID: 10787
2026-07-20 16:05:17 +00:00
// Name: open
2026-08-05 07:35:12 +00:00
// Dependencies: [10785, 709, 9053, 3866, 2]
2026-07-20 16:05:17 +00:00
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
2026-08-05 07:35:12 +00:00
// Module 10786 (open)
2026-07-29 08:29:29 +00:00
import updateStats from "updateStats";
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-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
2026-07-20 16:05:17 +00:00
};
export const close = function close() {
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
2026-07-20 16:05:17 +00:00
};
export const openReplay = function openReplay() {
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
2026-07-20 16:05:17 +00:00
};
export const setSection = function setSection(section) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-08-05 07:35:12 +00:00
importDefault(9053)("connection_replay_log_enabled", value, updateStats.shouldRecordNextConnection());
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-29 08:29:29 +00:00
let obj = importDefault(709);
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-08-05 07:35:12 +00:00
const fileManager = importDefault(3866).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-29 08:29:29 +00:00
callback(table[1]).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH", path: str });
2026-07-20 16:05:17 +00:00
});
};