27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
// 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;
|
|
}
|