Add red encoding for opus only publisher (#1137)

* Add red encodings for opus only publisher

* Add test case for red receiver
This commit is contained in:
cnderrauber
2022-11-02 10:36:29 +08:00
committed by GitHub
parent 46f45e8892
commit bdd69c7a1c
7 changed files with 471 additions and 43 deletions
-4
View File
@@ -84,10 +84,6 @@ func (r *RedPrimaryReceiver) DeleteDownTrack(subscriberID livekit.ParticipantID)
r.downTrackSpreader.Free(subscriberID)
}
func (r *RedPrimaryReceiver) CanClose() bool {
return r.closed.Load() || r.downTrackSpreader.DownTrackCount() == 0
}
func (r *RedPrimaryReceiver) Close() {
r.closed.Store(true)
for _, dt := range r.downTrackSpreader.ResetAndGetDownTracks() {