This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
// Metro module 12885 (f12886).
import { AnalyticEvents } from "../../Constants";
import { VideoHealthManager } from "../../lib/VideoHealthManager";
import AnalyticsUtils from "../../utils/AnalyticsUtils";
let c8884_3, c8884_4;
export default function trackVideoToggle(a0, a1, a2) {
const defaultConfig = VideoHealthManager.defaultConfig;
const { featureEnabled, windowLength, allowedPoorFpsRatio, fpsThreshold, backoffTimeSec } = defaultConfig;
const VIDEO_TOGGLED = AnalyticEvents.VIDEO_TOGGLED;
const rtc_connection_id = c8884_3 == null ? void 0 : c8884_3();
AnalyticsUtils.track(VIDEO_TOGGLED, {
video_toggle_reason: a1,
toggled_user_id: a0,
rtc_connection_id,
media_session_id: c8884_4 == null ? void 0 : c8884_4(),
video_health_manager_window_length: featureEnabled ? windowLength : null,
video_health_manager_poor_fps_ratio: featureEnabled ? allowedPoorFpsRatio : null,
video_health_manager_fps_threshold: featureEnabled ? fpsThreshold : null,
is_video_shown: a2,
video_health_manager_backoff_time_seconds: featureEnabled ? backoffTimeSec : null
});
};
export function setVideoToggleAnalyticsParams(a0, a1) {
c8884_3 = a0;
c8884_4 = a1;
}