Use isEnding to indicate if down track could be resumed. (#4132)
There is no need to cache down track if participant is going away.
This commit is contained in:
@@ -1399,7 +1399,7 @@ func (d *DownTrack) CloseWithFlush(flush bool, isEnding bool) {
|
|||||||
close(d.keyFrameRequesterCh)
|
close(d.keyFrameRequesterCh)
|
||||||
d.keyFrameRequesterChMu.Unlock()
|
d.keyFrameRequesterChMu.Unlock()
|
||||||
|
|
||||||
d.params.Listener.OnDownTrackClose(!flush)
|
d.params.Listener.OnDownTrackClose(!isEnding)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {
|
func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {
|
||||||
|
|||||||
Reference in New Issue
Block a user