1 /* gstreamer-webrtc-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", gir_namespace = "GstWebRTC", gir_version = "1.0", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_dtls_transport", type_id = "gst_webrtc_dtls_transport_get_type ()")]
6 public class WebRTCDTLSTransport : Gst.Object {
7 [CCode (array_length = false)]
8 public weak void* _padding[4];
9 public weak Gst.Element dtlssrtpdec;
10 public weak Gst.Element dtlssrtpenc;
12 [CCode (has_construct_function = false)]
13 public WebRTCDTLSTransport (uint session_id, bool rtcp);
14 public void set_transport (Gst.WebRTCICETransport ice);
16 public string certificate { owned get; set; }
18 public bool client { get; set; }
20 public string remote_certificate { owned get; }
22 public bool rtcp { get; construct; }
24 public uint session_id { get; construct; }
26 public Gst.WebRTCDTLSTransportState state { get; }
28 public Gst.WebRTCICETransport transport { owned get; }
30 [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_ice_transport", type_id = "gst_webrtc_ice_transport_get_type ()")]
31 public abstract class WebRTCICETransport : Gst.Object {
32 [CCode (array_length = false)]
33 public weak void* _padding[4];
34 public Gst.WebRTCICERole role;
35 public weak Gst.Element sink;
36 public weak Gst.Element src;
37 [CCode (has_construct_function = false)]
38 protected WebRTCICETransport ();
39 public void connection_state_change (Gst.WebRTCICEConnectionState new_state);
41 public virtual bool gather_candidates ();
42 public void gathering_state_change (Gst.WebRTCICEGatheringState new_state);
43 public void new_candidate (uint stream_id, Gst.WebRTCICEComponent component, string attr);
44 public void selected_pair_change ();
46 public Gst.WebRTCICEComponent component { get; construct; }
48 public Gst.WebRTCICEGatheringState gathering_state { get; }
50 public Gst.WebRTCICEConnectionState state { get; }
51 public signal void on_new_candidate (string object);
52 public signal void on_selected_candidate_pair_change ();
54 [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_rtp_receiver", type_id = "gst_webrtc_rtp_receiver_get_type ()")]
55 public class WebRTCRTPReceiver : Gst.Object {
56 [CCode (array_length = false)]
57 public weak void* _padding[4];
58 public weak Gst.WebRTCDTLSTransport rtcp_transport;
59 public weak Gst.WebRTCDTLSTransport transport;
60 [CCode (has_construct_function = false)]
61 public WebRTCRTPReceiver ();
62 public void set_rtcp_transport (Gst.WebRTCDTLSTransport transport);
63 public void set_transport (Gst.WebRTCDTLSTransport transport);
65 [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_rtp_sender", type_id = "gst_webrtc_rtp_sender_get_type ()")]
66 public class WebRTCRTPSender : Gst.Object {
67 [CCode (array_length = false)]
68 public weak void* _padding[4];
69 public weak Gst.WebRTCDTLSTransport rtcp_transport;
70 public weak GLib.Array<void*> send_encodings;
71 public weak Gst.WebRTCDTLSTransport transport;
72 [CCode (has_construct_function = false)]
73 public WebRTCRTPSender ();
74 public void set_rtcp_transport (Gst.WebRTCDTLSTransport transport);
75 public void set_transport (Gst.WebRTCDTLSTransport transport);
77 [CCode (cheader_filename = "gst/webrtc/webrtc.h", lower_case_csuffix = "webrtc_rtp_transceiver", type_id = "gst_webrtc_rtp_transceiver_get_type ()")]
78 public abstract class WebRTCRTPTransceiver : Gst.Object {
79 [CCode (array_length = false)]
80 public weak void* _padding[4];
81 public weak Gst.Caps codec_preferences;
82 public Gst.WebRTCRTPTransceiverDirection current_direction;
83 public Gst.WebRTCRTPTransceiverDirection direction;
84 public weak string mid;
87 [CCode (has_construct_function = false)]
88 protected WebRTCRTPTransceiver ();
90 public uint mlineindex { get; construct; }
92 public Gst.WebRTCRTPReceiver receiver { owned get; construct; }
94 public Gst.WebRTCRTPSender sender { owned get; construct; }
96 [CCode (cheader_filename = "gst/webrtc/webrtc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "webrtc_session_description", type_id = "gst_webrtc_session_description_get_type ()")]
98 public class WebRTCSessionDescription {
99 public weak Gst.SDP.Message sdp;
100 public Gst.WebRTCSDPType type;
101 [CCode (has_construct_function = false)]
102 public WebRTCSessionDescription (Gst.WebRTCSDPType type, owned Gst.SDP.Message sdp);
103 public Gst.WebRTCSessionDescription copy ();
106 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_DTLS_SETUP_", type_id = "gst_webrtc_dtls_setup_get_type ()")]
107 public enum WebRTCDTLSSetup {
113 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_DTLS_TRANSPORT_STATE_", type_id = "gst_webrtc_dtls_transport_state_get_type ()")]
114 public enum WebRTCDTLSTransportState {
121 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_FEC_TYPE_", type_id = "gst_webrtc_fec_type_get_type ()")]
122 public enum WebRTCFECType {
126 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_ICE_COMPONENT_", type_id = "gst_webrtc_ice_component_get_type ()")]
127 public enum WebRTCICEComponent {
131 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_ICE_CONNECTION_STATE_", type_id = "gst_webrtc_ice_connection_state_get_type ()")]
132 public enum WebRTCICEConnectionState {
141 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_ICE_GATHERING_STATE_", type_id = "gst_webrtc_ice_gathering_state_get_type ()")]
142 public enum WebRTCICEGatheringState {
147 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_ICE_ROLE_", type_id = "gst_webrtc_ice_role_get_type ()")]
148 public enum WebRTCICERole {
152 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_PEER_CONNECTION_STATE_", type_id = "gst_webrtc_peer_connection_state_get_type ()")]
153 public enum WebRTCPeerConnectionState {
161 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_", type_id = "gst_webrtc_rtp_transceiver_direction_get_type ()")]
162 public enum WebRTCRTPTransceiverDirection {
169 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_SDP_TYPE_", type_id = "gst_webrtc_sdp_type_get_type ()")]
170 public enum WebRTCSDPType {
176 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_SIGNALING_STATE_", type_id = "gst_webrtc_signaling_state_get_type ()")]
177 public enum WebRTCSignalingState {
185 [CCode (cheader_filename = "gst/webrtc/webrtc.h", cprefix = "GST_WEBRTC_STATS_", type_id = "gst_webrtc_stats_type_get_type ()")]
186 public enum WebRTCStatsType {
202 [CCode (cheader_filename = "gst/webrtc/webrtc.h")]
203 public static unowned string webrtc_sdp_type_to_string (Gst.WebRTCSDPType type);