diff --git a/pkg/sfu/downtrack.go b/pkg/sfu/downtrack.go index 8c8a7a39c..8fdeaa589 100644 --- a/pkg/sfu/downtrack.go +++ b/pkg/sfu/downtrack.go @@ -882,6 +882,11 @@ func (d *DownTrack) maybeAddTransition(bitrate int64) { return } + ti := d.receiver.TrackInfo() + if ti == nil || ti.Source == livekit.TrackSource_SCREEN_SHARE { + return + } + d.connectionStats.AddTransition(bitrate, time.Now()) }