Key participants on stream id not user id

This commit is contained in:
Robert Long 2021-11-02 15:26:24 -07:00
parent 90f9cb9501
commit 55bc3df2fc

View file

@ -365,7 +365,7 @@ function InRoomView({
for (const callFeed of userMediaFeeds) { for (const callFeed of userMediaFeeds) {
participants.push({ participants.push({
id: callFeed.userId, id: callFeed.stream.id,
callFeed, callFeed,
isActiveSpeaker: isActiveSpeaker:
screenshareFeeds.length === 0 screenshareFeeds.length === 0
@ -376,7 +376,7 @@ function InRoomView({
for (const callFeed of screenshareFeeds) { for (const callFeed of screenshareFeeds) {
participants.push({ participants.push({
id: callFeed.userId + "-screenshare", id: callFeed.stream.id,
callFeed, callFeed,
isActiveSpeaker: true, isActiveSpeaker: true,
}); });