fix(metrics): increase max valid latency reporting time. Troubleshooting

This commit is contained in:
Gabe Kangas
2023-05-11 22:17:16 -07:00
parent 8694f425eb
commit d900da8cab

View File

@@ -1,7 +1,7 @@
/* eslint-disable no-plusplus */ /* eslint-disable no-plusplus */
const URL_PLAYBACK_METRICS = `/api/metrics/playback`; const URL_PLAYBACK_METRICS = `/api/metrics/playback`;
const METRICS_SEND_INTERVAL = 10000; const METRICS_SEND_INTERVAL = 10000;
const MAX_VALID_LATENCY_SECONDS = 40; // Anything > this gets thrown out. const MAX_VALID_LATENCY_SECONDS = 100; // Anything > this gets thrown out.
function getCurrentlyPlayingSegment(tech) { function getCurrentlyPlayingSegment(tech) {
const targetMedia = tech.vhs.playlists.media(); const targetMedia = tech.vhs.playlists.media();