mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
webrtc/datachannel: Change initial data channel state to CONNECTING
It complies with http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2099>
This commit is contained in:
parent
26fa35dcdf
commit
8537433f24
2 changed files with 3 additions and 5 deletions
|
@ -261,7 +261,7 @@ gst_webrtc_data_channel_class_init (GstWebRTCDataChannelClass * klass)
|
|||
"Ready State",
|
||||
"The Ready state of this data channel",
|
||||
GST_TYPE_WEBRTC_DATA_CHANNEL_STATE,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_NEW,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class,
|
||||
|
|
|
@ -351,8 +351,7 @@ typedef enum /*< underscore_name=gst_webrtc_priority_type >*/
|
|||
|
||||
/**
|
||||
* GstWebRTCDataChannelState:
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_NEW: new
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connection
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connecting
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: open
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: closing
|
||||
* @GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: closed
|
||||
|
@ -363,8 +362,7 @@ typedef enum /*< underscore_name=gst_webrtc_priority_type >*/
|
|||
*/
|
||||
typedef enum /*< underscore_name=gst_webrtc_data_channel_state >*/
|
||||
{
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_NEW,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING = 1,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_OPEN,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING,
|
||||
GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED,
|
||||
|
|
Loading…
Reference in a new issue