Show speaking indicators in spotlight during screen sharing

This commit is contained in:
Robin
2024-10-28 14:45:06 -04:00
parent 7edc8af9a0
commit 3a706ea3e0
2 changed files with 22 additions and 1 deletions

View File

@@ -714,7 +714,21 @@ export class CallViewModel extends ViewModel {
}
public showSpeakingIndicators: Observable<boolean> = this.layout.pipe(
map((l) => l.type !== "one-on-one" && !l.type.startsWith("spotlight-")),
map((l) => {
switch (l.type) {
case "spotlight-landscape":
case "spotlight-portrait":
// If the spotlight is showing the active speaker, we can do without
// speaking indicators as they're a redundant visual cue. But if
// screen sharing feeds are in the spotlight we still need them.
return l.spotlight[0] instanceof ScreenShareViewModel;
case "spotlight-expanded":
case "one-on-one":
return false;
default:
return true;
}
}),
this.scope.state(),
);