for (i = 0; i < webrtc->priv->transceivers->len; i++) {
GstWebRTCRTPTransceiver *rtp_trans =
g_ptr_array_index (webrtc->priv->transceivers, i);
+ WebRTCTransceiver *trans = WEBRTC_TRANSCEIVER (rtp_trans);
+ TransportStream *stream = trans->stream;
GstWebRTCDTLSTransport *transport;
GstWebRTCICEConnectionState ice_state;
GstWebRTCDTLSTransportState dtls_state;
pad_name =
g_strdup_printf ("send_rtcp_src_%u",
- rtp_trans->sender->rtcp_transport->session_id);
+ rtp_trans->sender->transport->session_id);
pad = gst_element_get_static_pad (webrtc->rtpbin, pad_name);
g_free (pad_name);
if (pad) {
gst_webrtc_bin_attach_probe_to_ice_sink (webrtc,
stream->transport->transport);
- gst_webrtc_bin_attach_probe_to_ice_sink (webrtc,
- stream->rtcp_transport->transport);
}
gst_webrtc_bin_update_sctp_priority (webrtc);
if (webrtc->priv->tos_attached)
gst_webrtc_bin_attach_probe_to_ice_sink (webrtc, transport->transport);
- if ((transport = ret->rtcp_transport)) {
- g_signal_connect (G_OBJECT (transport->transport),
- "notify::state", G_CALLBACK (_on_ice_transport_notify_state), webrtc);
- g_signal_connect (G_OBJECT (transport->transport),
- "notify::gathering-state",
- G_CALLBACK (_on_ice_transport_notify_gathering_state), webrtc);
- g_signal_connect (G_OBJECT (transport), "notify::state",
- G_CALLBACK (_on_dtls_transport_notify_state), webrtc);
- if (webrtc->priv->tos_attached)
- gst_webrtc_bin_attach_probe_to_ice_sink (webrtc, transport->transport);
- }
-
GST_TRACE_OBJECT (webrtc,
"Create transport %" GST_PTR_FORMAT " for session %u", ret, session_id);
void
gst_webrtc_nice_transport_update_buffer_size (GstWebRTCNiceTransport * nice)
{
- GstWebRTCICETransport *ice = GST_WEBRTC_ICE_TRANSPORT (nice);
NiceAgent *agent = NULL;
GPtrArray *sockets;
guint i;
g_object_get (nice->stream->ice, "agent", &agent, NULL);
g_assert (agent != NULL);
- sockets = nice_agent_get_sockets (agent, nice->stream->stream_id,
- ice->component + 1);
+ sockets = nice_agent_get_sockets (agent, nice->stream->stream_id, 1);
if (sockets == NULL) {
g_object_unref (agent);
return;
void gst_webrtc_rtp_sender_set_transport (GstWebRTCRTPSender * sender,
GstWebRTCDTLSTransport * transport);
GST_WEBRTC_API
-void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebRTCRTPSender * sender,
- GstWebRTCDTLSTransport * transport);
-
+void gst_webrtc_rtp_sender_set_priority (GstWebRTCRTPSender *sender,
+ GstWebRTCPriorityType priority);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPSender, gst_object_unref)