mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 11:44:43 +00:00
Set up RTX for WHIP publish (#3619)
* Set up RTX for WHIP publish * bail early on error
This commit is contained in:
+10
-1
@@ -1267,8 +1267,17 @@ func (t *PCTransport) HandleRemoteDescription(sd webrtc.SessionDescription) erro
|
||||
err = t.pc.SetRemoteDescription(sd)
|
||||
if err != nil {
|
||||
t.params.Logger.Errorw("could not set remote description on synchronous mode peer connection", err)
|
||||
return err
|
||||
}
|
||||
return err
|
||||
|
||||
rtxRepairs := nonSimulcastRTXRepairsFromSDP(parsed, t.params.Logger)
|
||||
if len(rtxRepairs) > 0 {
|
||||
t.params.Logger.Debugw("rtx pairs found from sdp", "ssrcs", rtxRepairs)
|
||||
for repair, base := range rtxRepairs {
|
||||
t.params.Config.BufferFactory.SetRTXPair(repair, base)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
t.postEvent(event{
|
||||
|
||||
Reference in New Issue
Block a user