Use Muted in TrackInfo to propagated published track muted. (#4453)

* Use Muted in TrackInfo to propagated published track muted.

When the track is muted as a receiver is created, the receiver
potentially was not getting the muted property. That would result in
quality scorer expecting packets.

Use TrackInfo consistently for mute and apply the mute on start up of a
receiver.

* update mute of subscriptions
This commit is contained in:
Raja Subramanian
2026-04-16 01:03:40 +05:30
committed by GitHub
parent 69aa94797b
commit 3cfb71e7ca
6 changed files with 38 additions and 90 deletions
+5 -4
View File
@@ -145,6 +145,8 @@ func NewWebRTCReceiver(
mime.IsMimeTypeStringRED(codec.MimeType) || strings.Contains(strings.ToLower(codec.SDPFmtpLine), "useinbandfec=1"),
)
w.UpdateTrackInfo(trackInfo)
return w
}
@@ -195,10 +197,9 @@ func (w *WebRTCReceiver) AddUpTrack(track TrackRemote, buff *buffer.Buffer) erro
return nil
}
func (w *WebRTCReceiver) SetUpTrackPaused(paused bool) {
w.ReceiverBase.SetUpTrackPaused(paused)
w.connectionStats.UpdateMute(paused)
func (w *WebRTCReceiver) UpdateTrackInfo(ti *livekit.TrackInfo) {
w.ReceiverBase.UpdateTrackInfo(ti)
w.connectionStats.UpdateMute(ti.GetMuted())
}
func (w *WebRTCReceiver) notifyMaxExpectedLayer(layer int32) {