mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-01 22:55:51 +00:00
co-authored by
Robin
parent
3f63a6fc3c
commit
e393b6a984
@@ -102,9 +102,9 @@ export function createBaseUserMedia(
|
||||
scope.behavior(
|
||||
combineLatest([participant$, showConnectionStats.value$]).pipe(
|
||||
switchMap(([p, showConnectionStats]) =>
|
||||
!p || !showConnectionStats
|
||||
? of(undefined)
|
||||
: observeRtpStreamStats$(p, source, statsType),
|
||||
p && showConnectionStats
|
||||
? observeRtpStreamStats$(p, source, statsType)
|
||||
: of(undefined),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user