Performance: Lower the RTP stats refresh interval

Because we no longer use it for computing the fit to frame setting; it's only for developer tools.
This commit is contained in:
Robin
2026-08-04 19:15:48 +02:00
parent 1e128c4da0
commit 8aead74ab9

View File

@@ -32,9 +32,7 @@ export function observeRtpStreamStats$(
> {
return combineLatest([
observeTrackReference$(participant, source),
// The update frequency is high because we use this value to update the PiP orientation and the fit/fill video tile props based on that
// We want it to be responsive. For just the debug tools 1s would be sufficient.
interval(350).pipe(startWith(0)),
interval(1000).pipe(startWith(0)),
]).pipe(
switchMap(async ([trackReference]) => {
const track = trackReference?.publication?.track;