mirror of
https://github.com/livekit/livekit.git
synced 2026-03-29 09:19:53 +00:00
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)
|
||||
d.keyFrameRequesterChMu.Unlock()
|
||||
|
||||
d.params.Listener.OnDownTrackClose(!flush)
|
||||
d.params.Listener.OnDownTrackClose(!isEnding)
|
||||
}
|
||||
|
||||
func (d *DownTrack) SetMaxSpatialLayer(spatialLayer int32) {
|
||||
|
||||
Reference in New Issue
Block a user