Improve video quality selection by using publisher feedback (#238)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user