decord/source/actions/RTCDebugActionCreators.tsx

54 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 11007
// Function ID: 11008
2026-07-20 16:05:17 +00:00
// Name: open
2026-08-25 06:04:03 +00:00
// Dependencies: [11006, 709, 9307, 4008, 2]
2026-07-20 16:05:17 +00:00
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
2026-08-25 06:04:03 +00:00
// Module 11007 (open)
2026-08-24 06:08:38 +00:00
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import setDefault from "set" /* 4008 */;
import trackVoiceAndVideoDebuggingSettingsUpdatedDefault from "trackVoiceAndVideoDebuggingSettingsUpdated" /* 9307 */;
import closure_2 from "updateStats" /* 11006 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const open = function open(section) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
2026-07-20 16:05:17 +00:00
};
export const close = function close() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
2026-07-20 16:05:17 +00:00
};
export const openReplay = function openReplay() {
2026-08-24 06:08:38 +00:00
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
2026-07-20 16:05:17 +00:00
};
export const setSection = function setSection(section) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
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-24 06:08:38 +00:00
trackVoiceAndVideoDebuggingSettingsUpdatedDefault("connection_replay_log_enabled", value, closure_2.shouldRecordNextConnection());
let obj = dispatcherDefault;
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-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
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-24 06:08:38 +00:00
const fileManager = setDefault.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
});
};