decord/source/actions/RTCDebugActionCreators.tsx

54 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9968
// Function ID: 9969
2026-07-20 16:05:17 +00:00
// Name: open
// Dependencies: [9967, 706, 9023, 4103, 2]
2026-07-20 16:05:17 +00:00
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 9968 (open)
2026-09-02 09:53:35 +00:00
import dispatcherDefault from "dispatcher" /* 706 */;
import setDefault from "set" /* 4103 */;
import trackVoiceAndVideoDebuggingSettingsUpdatedDefault from "trackVoiceAndVideoDebuggingSettingsUpdated" /* 9023 */;
import closure_2 from "updateStats" /* 9967 */;
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
});
};