Skip to content

Commit

Permalink
set video shuffling for active users if more than 3 users
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Oct 23, 2022
1 parent e7405b8 commit 1f1bccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/livekit/HandleActiveSpeakers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class HandleActiveSpeakers {

participants.forEach((participant) => {
// we won't update if user is paginating & viewing webcams from other pages.
if (!isPaginating && this.that.videoSubscribersMap.size > 4) {
if (!isPaginating && this.that.videoSubscribersMap.size > 3) {
// we'll wait little bit before changing
const last =
this.lastActiveWebcamChanged +
Expand Down

0 comments on commit 1f1bccc

Please sign in to comment.