Don't render audio from participants that aren't meant to be publishing

This commit is contained in:
Robin
2025-09-25 21:29:02 -04:00
parent 4980d8a622
commit 0759f9b27d
4 changed files with 122 additions and 98 deletions

View File

@@ -93,11 +93,9 @@ export class Connection {
);
this.publishingParticipants$ = this.scope.behavior(
combineLatest([
this.participantsIncludingSubscribers$,
this.membershipsFocusMap$,
]).pipe(
map(([participants, membershipsFocusMap]) =>
combineLatest(
[this.participantsIncludingSubscribers$, this.membershipsFocusMap$],
(participants, membershipsFocusMap) =>
membershipsFocusMap
// Find all members that claim to publish on this connection
.flatMap(({ membership, focus }) =>
@@ -113,7 +111,6 @@ export class Connection {
);
return participant ? [{ participant, membership }] : [];
}),
),
),
[],
);