Improve video quality selection by using publisher feedback (#238)

This commit is contained in:
David Zhao
2021-12-06 12:12:08 -08:00
committed by GitHub
parent ff390820e1
commit 318bee4f1e
14 changed files with 380 additions and 242 deletions
+1 -9
View File
@@ -365,6 +365,7 @@ func (p *ParticipantImpl) AddTrack(req *livekit.AddTrackRequest) {
Muted: req.Muted,
DisableDtx: req.DisableDtx,
Source: req.Source,
Layers: req.Layers,
}
p.pendingTracks[req.Cid] = ti
@@ -498,15 +499,6 @@ func (p *ParticipantImpl) AddSubscriber(op types.Participant) (int, error) {
return n, nil
}
func (p *ParticipantImpl) RemoveSubscriber(participantId string) {
p.lock.RLock()
defer p.lock.RUnlock()
for _, track := range p.publishedTracks {
track.RemoveSubscriber(participantId)
}
}
// signal connection methods
func (p *ParticipantImpl) SendJoinResponse(