resolve downtrack.bind/close timing issue (#833)

* resolve downtrack.bind/close timing issue

* fix test case
This commit is contained in:
cnderrauber
2022-07-15 14:09:45 +08:00
committed by GitHub
parent a2bf32797b
commit a0578db3ed
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ func (w *WebRTCReceiver) AddDownTrack(track TrackSender) error {
}
if w.downTrackSpreader.HasDownTrack(track.SubscriberID()) {
return ErrDownTrackAlreadyExist
w.logger.Infow("subscriberID already exists, replace the downtrack", "subscriberID", track.SubscriberID())
}
if w.Kind() == webrtc.RTPCodecTypeVideo {