mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
webrtcbin: bind transceiver's fec-percentage to encoder percentage
Allows for dynamic control of the applied FEC overhead Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1429>
This commit is contained in:
parent
06893b8b5e
commit
abd61732bf
1 changed files with 3 additions and 0 deletions
|
@ -4374,6 +4374,9 @@ _build_fec_encoder (GstWebRTCBin * webrtc, WebRTCTransceiver * trans)
|
|||
g_object_set (fecenc, "pt", ulpfec_pt, "percentage",
|
||||
trans->fec_percentage, NULL);
|
||||
|
||||
g_object_bind_property (rtp_trans, "fec-percentage", fecenc, "percentage",
|
||||
G_BINDING_BIDIRECTIONAL);
|
||||
|
||||
if (caps && !gst_caps_is_empty (caps)) {
|
||||
const GstStructure *s = gst_caps_get_structure (caps, 0);
|
||||
const gchar *media = gst_structure_get_string (s, "media");
|
||||
|
|
Loading…
Reference in a new issue