mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 00:02:53 +00:00
Don't SetCodecPreferences for video transceiver (#3249)
The SetCodecPrefrences function will save codecs to the transceiver and if the primary codec is not support by the client, the saved codec will generate rtx codec for the unsupported codec cause corrupted sdp.
This commit is contained in:
1 parent
499fbd2a1d
commit
6df339b77c
1 file changed
+6
-2
@@ -811,7 +811,9 @@ func (t *PCTransport) AddTrack(trackLocal webrtc.TrackLocal, params types.AddTra
|
||||
return
|
||||
}
|
||||
|
||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -827,7 +829,9 @@ func (t *PCTransport) AddTransceiverFromTrack(trackLocal webrtc.TrackLocal, para
|
||||
return
|
||||
}
|
||||
|
||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||
if trackLocal.Kind() == webrtc.RTPCodecTypeAudio {
|
||||
configureAudioTransceiver(transceiver, params.Stereo, !params.Red || !t.params.ClientInfo.SupportsAudioRED())
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user