Expand comment
This commit is contained in:
parent
1ff9073a1a
commit
771424cbf0
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,11 @@ function getActiveSpeakerFeed(
|
||||||
const activeSpeakerFeeds = feeds.filter((f) => !f.isAudioMuted());
|
const activeSpeakerFeeds = feeds.filter((f) => !f.isAudioMuted());
|
||||||
|
|
||||||
// make sure the feeds are in a deterministic order so every client picks
|
// make sure the feeds are in a deterministic order so every client picks
|
||||||
// the same one as the active speaker
|
// the same one as the active speaker. The custom sort function sorts
|
||||||
|
// by user ID, so needs a collator of some kind to compare. We make a
|
||||||
|
// specific one to help ensure every client sorts the same way
|
||||||
|
// although of course user IDs shouldn't contain accented characters etc.
|
||||||
|
// anyway).
|
||||||
const collator = new Intl.Collator("en", {
|
const collator = new Intl.Collator("en", {
|
||||||
sensitivity: "variant",
|
sensitivity: "variant",
|
||||||
usage: "sort",
|
usage: "sort",
|
||||||
|
|
Loading…
Reference in a new issue