mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 02:12:44 +00:00
enable nack if red encoding disabled (#1477)
This commit is contained in:
1 parent
e423873aa3
commit
29fa61068e
1 file changed
+4
@@ -205,6 +205,10 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
|
||||
Stereo: info.Stereo,
|
||||
Red: !info.DisableRed,
|
||||
}
|
||||
if addTrackParams.Red && (len(codecs) == 1 && codecs[0].MimeType == webrtc.MimeTypeOpus) {
|
||||
addTrackParams.Red = false
|
||||
}
|
||||
|
||||
sub.VerifySubscribeParticipantInfo(subTrack.PublisherID(), subTrack.PublisherVersion())
|
||||
if sub.ProtocolVersion().SupportsTransceiverReuse() {
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user