2017-01-31 09:56:59 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2017 Matthew Waters <matthew@centricular.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_WEBRTC_FWD_H__
|
|
|
|
#define __GST_WEBRTC_FWD_H__
|
|
|
|
|
|
|
|
#ifndef GST_USE_UNSTABLE_API
|
|
|
|
#warning "The WebRTC library from gst-plugins-bad is unstable API and may change in future."
|
|
|
|
#warning "You can define GST_USE_UNSTABLE_API to avoid this warning."
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2018-03-13 13:11:17 +00:00
|
|
|
|
2018-08-11 00:32:30 +00:00
|
|
|
/**
|
|
|
|
* SECTION:webrtc_fwd.h
|
|
|
|
* @title: GstWebRTC Enumerations
|
|
|
|
*/
|
|
|
|
|
2018-03-13 13:11:17 +00:00
|
|
|
#ifndef GST_WEBRTC_API
|
2018-09-24 10:52:22 +00:00
|
|
|
# ifdef BUILDING_GST_WEBRTC
|
|
|
|
# define GST_WEBRTC_API GST_API_EXPORT /* from config.h */
|
|
|
|
# else
|
|
|
|
# define GST_WEBRTC_API GST_API_IMPORT
|
|
|
|
# endif
|
2018-03-13 13:11:17 +00:00
|
|
|
#endif
|
|
|
|
|
2017-01-31 09:56:59 +00:00
|
|
|
#include <gst/webrtc/webrtc-enumtypes.h>
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCDTLSTransport GstWebRTCDTLSTransport;
|
|
|
|
typedef struct _GstWebRTCDTLSTransportClass GstWebRTCDTLSTransportClass;
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCICETransport GstWebRTCICETransport;
|
|
|
|
typedef struct _GstWebRTCICETransportClass GstWebRTCICETransportClass;
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCRTPReceiver GstWebRTCRTPReceiver;
|
|
|
|
typedef struct _GstWebRTCRTPReceiverClass GstWebRTCRTPReceiverClass;
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCRTPSender GstWebRTCRTPSender;
|
|
|
|
typedef struct _GstWebRTCRTPSenderClass GstWebRTCRTPSenderClass;
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCSessionDescription GstWebRTCSessionDescription;
|
|
|
|
|
|
|
|
typedef struct _GstWebRTCRTPTransceiver GstWebRTCRTPTransceiver;
|
|
|
|
typedef struct _GstWebRTCRTPTransceiverClass GstWebRTCRTPTransceiverClass;
|
|
|
|
|
2020-06-01 11:46:03 +00:00
|
|
|
typedef struct _GstWebRTCDataChannel GstWebRTCDataChannel;
|
|
|
|
typedef struct _GstWebRTCDataChannelClass GstWebRTCDataChannelClass;
|
|
|
|
|
2017-01-31 09:56:59 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCDTLSTransportState:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW: new
|
|
|
|
* @GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED: closed
|
|
|
|
* @GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED: failed
|
|
|
|
* @GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING: connecting
|
|
|
|
* @GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED: connected
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_dtls_transport_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW,
|
|
|
|
GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED,
|
|
|
|
GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED,
|
|
|
|
GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING,
|
|
|
|
GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED,
|
|
|
|
} GstWebRTCDTLSTransportState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCICEGatheringState:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_ICE_GATHERING_STATE_NEW: new
|
|
|
|
* @GST_WEBRTC_ICE_GATHERING_STATE_GATHERING: gathering
|
|
|
|
* @GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE: complete
|
2017-01-31 09:56:59 +00:00
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcicegatheringstate>
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_ice_gathering_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_ICE_GATHERING_STATE_NEW,
|
|
|
|
GST_WEBRTC_ICE_GATHERING_STATE_GATHERING,
|
|
|
|
GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE,
|
|
|
|
} GstWebRTCICEGatheringState; /*< underscore_name=gst_webrtc_ice_gathering_state >*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCICEConnectionState:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_NEW: new
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING: checking
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED: connected
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED: completed
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_FAILED: failed
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED: disconnected
|
|
|
|
* @GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED: closed
|
2017-01-31 09:56:59 +00:00
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtciceconnectionstate>
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_ice_connection_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_NEW,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_FAILED,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED,
|
|
|
|
GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED,
|
|
|
|
} GstWebRTCICEConnectionState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCSignalingState:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_STABLE: stable
|
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_CLOSED: closed
|
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER: have-local-offer
|
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER: have-remote-offer
|
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER: have-local-pranswer
|
|
|
|
* @GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER: have-remote-pranswer
|
2017-01-31 09:56:59 +00:00
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcsignalingstate>
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_signaling_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_STABLE,
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_CLOSED,
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER,
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER,
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER,
|
|
|
|
GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER,
|
|
|
|
} GstWebRTCSignalingState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCPeerConnectionState:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_NEW: new
|
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING: connecting
|
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED: connected
|
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED: disconnected
|
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_FAILED: failed
|
|
|
|
* @GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED: closed
|
2017-01-31 09:56:59 +00:00
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnectionstate>
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_peer_connection_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_NEW,
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING,
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED,
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED,
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_FAILED,
|
|
|
|
GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED,
|
|
|
|
} GstWebRTCPeerConnectionState;
|
|
|
|
|
|
|
|
/**
|
2018-03-15 14:58:40 +00:00
|
|
|
* GstWebRTCICERole:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_ICE_ROLE_CONTROLLED: controlled
|
|
|
|
* @GST_WEBRTC_ICE_ROLE_CONTROLLING: controlling
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_ice_role >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_ICE_ROLE_CONTROLLED,
|
|
|
|
GST_WEBRTC_ICE_ROLE_CONTROLLING,
|
2018-03-15 14:58:40 +00:00
|
|
|
} GstWebRTCICERole;
|
2017-01-31 09:56:59 +00:00
|
|
|
|
|
|
|
/**
|
2018-03-15 14:58:40 +00:00
|
|
|
* GstWebRTCICEComponent:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_ICE_COMPONENT_RTP: RTP component
|
|
|
|
* @GST_WEBRTC_ICE_COMPONENT_RTCP: RTCP component
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_ice_component >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_ICE_COMPONENT_RTP,
|
|
|
|
GST_WEBRTC_ICE_COMPONENT_RTCP,
|
|
|
|
} GstWebRTCICEComponent;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCSDPType:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_SDP_TYPE_OFFER: offer
|
|
|
|
* @GST_WEBRTC_SDP_TYPE_PRANSWER: pranswer
|
|
|
|
* @GST_WEBRTC_SDP_TYPE_ANSWER: answer
|
|
|
|
* @GST_WEBRTC_SDP_TYPE_ROLLBACK: rollback
|
2017-01-31 09:56:59 +00:00
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#rtcsdptype>
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_sdp_type >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_SDP_TYPE_OFFER = 1,
|
|
|
|
GST_WEBRTC_SDP_TYPE_PRANSWER,
|
|
|
|
GST_WEBRTC_SDP_TYPE_ANSWER,
|
|
|
|
GST_WEBRTC_SDP_TYPE_ROLLBACK,
|
|
|
|
} GstWebRTCSDPType;
|
|
|
|
|
|
|
|
/**
|
2018-08-11 00:32:30 +00:00
|
|
|
* GstWebRTCRTPTransceiverDirection:
|
|
|
|
* @GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE: none
|
|
|
|
* @GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE: inactive
|
|
|
|
* @GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY: sendonly
|
|
|
|
* @GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY: recvonly
|
|
|
|
* @GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV: sendrecv
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_rtp_transceiver_direction >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE,
|
|
|
|
GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE,
|
|
|
|
GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY,
|
|
|
|
GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY,
|
|
|
|
GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV,
|
|
|
|
} GstWebRTCRTPTransceiverDirection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCDTLSSetup:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_DTLS_SETUP_NONE: none
|
|
|
|
* @GST_WEBRTC_DTLS_SETUP_ACTPASS: actpass
|
|
|
|
* @GST_WEBRTC_DTLS_SETUP_ACTIVE: sendonly
|
|
|
|
* @GST_WEBRTC_DTLS_SETUP_PASSIVE: recvonly
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_dtls_setup >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_DTLS_SETUP_NONE,
|
|
|
|
GST_WEBRTC_DTLS_SETUP_ACTPASS,
|
|
|
|
GST_WEBRTC_DTLS_SETUP_ACTIVE,
|
|
|
|
GST_WEBRTC_DTLS_SETUP_PASSIVE,
|
|
|
|
} GstWebRTCDTLSSetup;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCStatsType:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_STATS_CODEC: codec
|
|
|
|
* @GST_WEBRTC_STATS_INBOUND_RTP: inbound-rtp
|
|
|
|
* @GST_WEBRTC_STATS_OUTBOUND_RTP: outbound-rtp
|
|
|
|
* @GST_WEBRTC_STATS_REMOTE_INBOUND_RTP: remote-inbound-rtp
|
|
|
|
* @GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP: remote-outbound-rtp
|
|
|
|
* @GST_WEBRTC_STATS_CSRC: csrc
|
|
|
|
* @GST_WEBRTC_STATS_PEER_CONNECTION: peer-connectiion
|
|
|
|
* @GST_WEBRTC_STATS_DATA_CHANNEL: data-channel
|
|
|
|
* @GST_WEBRTC_STATS_STREAM: stream
|
|
|
|
* @GST_WEBRTC_STATS_TRANSPORT: transport
|
|
|
|
* @GST_WEBRTC_STATS_CANDIDATE_PAIR: candidate-pair
|
|
|
|
* @GST_WEBRTC_STATS_LOCAL_CANDIDATE: local-candidate
|
|
|
|
* @GST_WEBRTC_STATS_REMOTE_CANDIDATE: remote-candidate
|
|
|
|
* @GST_WEBRTC_STATS_CERTIFICATE: certificate
|
2017-01-31 09:56:59 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_stats_type >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_STATS_CODEC = 1,
|
|
|
|
GST_WEBRTC_STATS_INBOUND_RTP,
|
|
|
|
GST_WEBRTC_STATS_OUTBOUND_RTP,
|
|
|
|
GST_WEBRTC_STATS_REMOTE_INBOUND_RTP,
|
|
|
|
GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP,
|
|
|
|
GST_WEBRTC_STATS_CSRC,
|
|
|
|
GST_WEBRTC_STATS_PEER_CONNECTION,
|
|
|
|
GST_WEBRTC_STATS_DATA_CHANNEL,
|
|
|
|
GST_WEBRTC_STATS_STREAM,
|
|
|
|
GST_WEBRTC_STATS_TRANSPORT,
|
|
|
|
GST_WEBRTC_STATS_CANDIDATE_PAIR,
|
|
|
|
GST_WEBRTC_STATS_LOCAL_CANDIDATE,
|
|
|
|
GST_WEBRTC_STATS_REMOTE_CANDIDATE,
|
|
|
|
GST_WEBRTC_STATS_CERTIFICATE,
|
|
|
|
} GstWebRTCStatsType;
|
|
|
|
|
2017-11-29 16:57:52 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCFECType:
|
2018-08-11 00:32:30 +00:00
|
|
|
* @GST_WEBRTC_FEC_TYPE_NONE: none
|
|
|
|
* @GST_WEBRTC_FEC_TYPE_ULP_RED: ulpfec + red
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.14.1
|
2017-11-29 16:57:52 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_fec_type >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_FEC_TYPE_NONE,
|
|
|
|
GST_WEBRTC_FEC_TYPE_ULP_RED,
|
|
|
|
} GstWebRTCFECType;
|
|
|
|
|
2018-09-10 13:52:05 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCSCTPTransportState:
|
|
|
|
* GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW: new
|
|
|
|
* GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING: connecting
|
|
|
|
* GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED: connected
|
|
|
|
* GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED: closed
|
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcsctptransportstate>
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.16
|
2018-09-10 13:52:05 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_sctp_transport_state >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW,
|
|
|
|
GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING,
|
|
|
|
GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED,
|
|
|
|
GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED,
|
|
|
|
} GstWebRTCSCTPTransportState;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCPriorityType:
|
|
|
|
* GST_WEBRTC_PRIORITY_TYPE_VERY_LOW: very-low
|
|
|
|
* GST_WEBRTC_PRIORITY_TYPE_LOW: low
|
|
|
|
* GST_WEBRTC_PRIORITY_TYPE_MEDIUM: medium
|
|
|
|
* GST_WEBRTC_PRIORITY_TYPE_HIGH: high
|
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcprioritytype>
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.16
|
2018-09-10 13:52:05 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*< underscore_name=gst_webrtc_priority_type >*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_PRIORITY_TYPE_VERY_LOW = 1,
|
|
|
|
GST_WEBRTC_PRIORITY_TYPE_LOW,
|
|
|
|
GST_WEBRTC_PRIORITY_TYPE_MEDIUM,
|
|
|
|
GST_WEBRTC_PRIORITY_TYPE_HIGH,
|
|
|
|
} GstWebRTCPriorityType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstWebRTCDataChannelState:
|
|
|
|
* GST_WEBRTC_DATA_CHANNEL_STATE_NEW: new
|
|
|
|
* GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING: connection
|
|
|
|
* GST_WEBRTC_DATA_CHANNEL_STATE_OPEN: open
|
|
|
|
* GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING: closing
|
|
|
|
* GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED: closed
|
|
|
|
*
|
2019-08-23 17:56:35 +00:00
|
|
|
* See <http://w3c.github.io/webrtc-pc/#dom-rtcdatachannelstate>
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.16
|
2018-09-10 13:52:05 +00:00
|
|
|
*/
|
|
|
|
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_OPEN,
|
|
|
|
GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING,
|
|
|
|
GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED,
|
|
|
|
} GstWebRTCDataChannelState;
|
|
|
|
|
2018-09-13 22:08:34 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCBundlePolicy:
|
|
|
|
* GST_WEBRTC_BUNDLE_POLICY_NONE: none
|
|
|
|
* GST_WEBRTC_BUNDLE_POLICY_BALANCED: balanced
|
|
|
|
* GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT: max-compat
|
|
|
|
* GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE: max-bundle
|
|
|
|
*
|
|
|
|
* See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1
|
|
|
|
* for more information.
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.16
|
2018-09-13 22:08:34 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*<underscore_name=gst_webrtc_bundle_policy>*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_BUNDLE_POLICY_NONE,
|
|
|
|
GST_WEBRTC_BUNDLE_POLICY_BALANCED,
|
|
|
|
GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT,
|
|
|
|
GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE,
|
|
|
|
} GstWebRTCBundlePolicy;
|
|
|
|
|
2019-01-17 14:06:06 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCICETransportPolicy:
|
|
|
|
* GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL: all
|
|
|
|
* GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY: relay
|
|
|
|
*
|
|
|
|
* See https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24#section-4.1.1
|
|
|
|
* for more information.
|
2019-05-21 09:15:55 +00:00
|
|
|
*
|
|
|
|
* Since: 1.16
|
2019-01-17 14:06:06 +00:00
|
|
|
*/
|
|
|
|
typedef enum /*<underscore_name=gst_webrtc_ice_transport_policy>*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL,
|
|
|
|
GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY,
|
|
|
|
} GstWebRTCICETransportPolicy;
|
|
|
|
|
2020-07-08 23:13:33 +00:00
|
|
|
/**
|
|
|
|
* GstWebRTCKind:
|
|
|
|
* @GST_WEBRTC_KIND_UNKNOWN: Kind has not yet been set
|
|
|
|
* @GST_WEBRTC_KIND_AUDIO: Kind is audio
|
|
|
|
* @GST_WEBRTC_KIND_VIDEO: Kind is audio
|
|
|
|
*
|
|
|
|
* https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack-kind
|
|
|
|
*
|
|
|
|
* Since: 1.20
|
|
|
|
*/
|
|
|
|
typedef enum /*<underscore_name=gst_webrtc_kind>*/
|
|
|
|
{
|
|
|
|
GST_WEBRTC_KIND_UNKNOWN,
|
|
|
|
GST_WEBRTC_KIND_AUDIO,
|
|
|
|
GST_WEBRTC_KIND_VIDEO,
|
|
|
|
} GstWebRTCKind;
|
|
|
|
|
2017-01-31 09:56:59 +00:00
|
|
|
#endif /* __GST_WEBRTC_FWD_H__ */
|