decord/source/actions/RTCDebugActionCreators.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

53 lines
2.2 KiB
TypeScript

// Module ID: 10044
// Function ID: 10045
// Name: open
// Dependencies: [10043, 573, 9099, 4182, 2]
// Exports: chooseReplayPath, close, open, openReplay, setSection, setShouldRecordNextConnection, setSimulcastDebugOverride
// Module 10044 (open)
import dispatcherDefault from "dispatcher" /* 573 */;
import setDefault from "set" /* 4182 */;
import trackVoiceAndVideoDebuggingSettingsUpdatedDefault from "trackVoiceAndVideoDebuggingSettingsUpdated" /* 9099 */;
import closure_2 from "updateStats" /* 10043 */;
const result = require("set").fileFinishedImporting("actions/RTCDebugActionCreators.tsx");
export const open = function open(section) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_MODAL_OPEN", section };
obj.dispatch(obj);
dispatcherDefault.dispatch({ type: "RTC_DEBUG_POPOUT_WINDOW_OPEN" });
};
export const close = function close() {
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_CLOSE" });
};
export const openReplay = function openReplay() {
dispatcherDefault.dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY" });
};
export const setSection = function setSection(section) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_MODAL_SET_SECTION", section };
obj.dispatch(obj);
};
export const setShouldRecordNextConnection = function setShouldRecordNextConnection(value) {
trackVoiceAndVideoDebuggingSettingsUpdatedDefault("connection_replay_log_enabled", value, closure_2.shouldRecordNextConnection());
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_SET_RECORDING_FLAG", value };
obj.dispatch(obj);
};
export const setSimulcastDebugOverride = function setSimulcastDebugOverride(userId, context, quality) {
let obj = dispatcherDefault;
obj = { type: "RTC_DEBUG_SET_SIMULCAST_OVERRIDE", userId, context, quality };
obj.dispatch(obj);
};
export const chooseReplayPath = function chooseReplayPath() {
const fileManager = setDefault.fileManager;
const items = [{ name: "All Files", extensions: ["*"] }];
fileManager.showOpenDialog({ filters: items }).then((arg0) => {
let str = "";
if (0 !== arg0.length) {
str = arg0[0];
}
callback(table[1]).dispatch({ type: "RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH", path: str });
});
};