webrtcbin: Expose current and pending local/remote description properties
authorPhilippe Normand <philn@igalia.com>
Tue, 28 May 2019 15:58:20 +0000 (16:58 +0100)
committerPhilippe Normand <philn@igalia.com>
Thu, 30 May 2019 09:35:58 +0000 (10:35 +0100)
They are already handled in the property getter and setter functions but were
not formally declared in the GObject class.

ext/webrtc/gstwebrtcbin.c

index 14fa183..6d4a49b 100644 (file)
@@ -4984,6 +4984,26 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
+      PROP_CURRENT_LOCAL_DESCRIPTION,
+      g_param_spec_boxed ("current-local-description",
+          "Current Local Description",
+          "The local description that was successfully negotiated the last time "
+          "the connection transitioned into the stable state",
+          GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+  g_object_class_install_property (gobject_class,
+      PROP_PENDING_LOCAL_DESCRIPTION,
+      g_param_spec_boxed ("pending-local-description",
+          "Pending Local Description",
+          "The local description that is in the process of being negotiated plus "
+          "any local candidates that have been generated by the ICE Agent since the "
+          "offer or answer was created",
+          GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+
+  g_object_class_install_property (gobject_class,
       PROP_REMOTE_DESCRIPTION,
       g_param_spec_boxed ("remote-description", "Remote Description",
           "The remote SDP description to use for this connection",
@@ -4991,6 +5011,28 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   g_object_class_install_property (gobject_class,
+      PROP_CURRENT_REMOTE_DESCRIPTION,
+      g_param_spec_boxed ("current-remote-description",
+          "Current Remote Description",
+          "The last remote description that was successfully negotiated the last "
+          "time the connection transitioned into the stable state plus any remote "
+          "candidates that have been supplied via addIceCandidate() since the offer "
+          "or answer was created",
+          GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+  g_object_class_install_property (gobject_class,
+      PROP_PENDING_REMOTE_DESCRIPTION,
+      g_param_spec_boxed ("pending-remote-description",
+          "Pending Remote Description",
+          "The remote description that is in the process of being negotiated, "
+          "complete with any remote candidates that have been supplied via "
+          "addIceCandidate() since the offer or answer was created",
+          GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
+          G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
+
+
+  g_object_class_install_property (gobject_class,
       PROP_STUN_SERVER,
       g_param_spec_string ("stun-server", "STUN Server",
           "The STUN server of the form stun://hostname:port",