webrtcbin: Expose current and pending local/remote description properties

They are already handled in the property getter and setter functions but were
not formally declared in the GObject class.
This commit is contained in:
Philippe Normand 2019-05-28 16:58:20 +01:00
parent da6afdec9c
commit 9595a7a721

View file

@ -4983,6 +4983,26 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
GST_TYPE_WEBRTC_SESSION_DESCRIPTION, GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 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, g_object_class_install_property (gobject_class,
PROP_REMOTE_DESCRIPTION, PROP_REMOTE_DESCRIPTION,
g_param_spec_boxed ("remote-description", "Remote Description", g_param_spec_boxed ("remote-description", "Remote Description",
@ -4990,6 +5010,28 @@ gst_webrtc_bin_class_init (GstWebRTCBinClass * klass)
GST_TYPE_WEBRTC_SESSION_DESCRIPTION, GST_TYPE_WEBRTC_SESSION_DESCRIPTION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 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, g_object_class_install_property (gobject_class,
PROP_STUN_SERVER, PROP_STUN_SERVER,
g_param_spec_string ("stun-server", "STUN Server", g_param_spec_string ("stun-server", "STUN Server",