webrtc: support renegotiating adding/removing RTX
authorMatthew Waters <matthew@centricular.com>
Tue, 3 Aug 2021 02:14:49 +0000 (12:14 +1000)
committerMatthew Waters <matthew@centricular.com>
Fri, 4 Mar 2022 08:21:59 +0000 (19:21 +1100)
commitb7d0ddd1a40953b80f5e847884ad0fa6a1a4939c
treed051b87245c86bcdb18ce94a8830dc3f627f82b5
parent8a598deef2ccee17888b130d04fa0841bacec0ff
webrtc: support renegotiating adding/removing RTX

We need to always add the RTX/RED/ULPFEC elements as rtpbin will only
call us once to request aux/fec senders/receivers.

We also need to regenerate the media section of the SDP instead of
blindly copying from the previous offer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1762>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/ext/webrtc/transportstream.c
subprojects/gst-plugins-bad/ext/webrtc/transportstream.h
subprojects/gst-plugins-bad/ext/webrtc/webrtctransceiver.c
subprojects/gst-plugins-bad/ext/webrtc/webrtctransceiver.h
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c