Skip to content

Commit

Permalink
deprioritize local tracks on presenter
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Dec 25, 2024
1 parent 0c3c536 commit 9b73252
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/src/ChatVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,18 @@ export default {
if (!pub) {
return -1
}
for (const t of this.room.localParticipant.getTrackPublications().values()) {
if (t.trackSid === pub.trackSid) {
return 0
}
}
switch (pub.source) {
case "camera":
return isSpeaking ? 2 : 1;
return isSpeaking ? 3 : 2;
case "screen_share":
return 3
return 4
default:
return 0
return 1
}
},
// TODO pin to presenter an element from UserVideo
Expand Down

0 comments on commit 9b73252

Please sign in to comment.