From 762076b88663ac0225175593cb216040471701e5 Mon Sep 17 00:00:00 2001 From: Anton Sukhanov Date: Mon, 20 May 2019 14:39:06 -0700 Subject: [PATCH] Add flag to use datagram transport (without implementation) Integration with datagram transport will come in next CLs. NOTE that since we now have implemented negotiation for media transport, we can replace configuration flags with field trials, but it will be done later for both media and datagram transports. Bug: webrtc:9719 Change-Id: Icf062d030899d53d5646977ba195d1634050704b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/137820 Commit-Queue: Anton Sukhanov Reviewed-by: Steve Anton Reviewed-by: Bjorn Mellem Cr-Commit-Position: refs/heads/master@{#27996} --- api/peer_connection_interface.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/peer_connection_interface.h b/api/peer_connection_interface.h index f64b623fd0..f626b95000 100644 --- a/api/peer_connection_interface.h +++ b/api/peer_connection_interface.h @@ -615,6 +615,16 @@ class RTC_EXPORT PeerConnectionInterface : public rtc::RefCountInterface { // |enable_rtp_data_channel| is invalid. bool use_media_transport_for_data_channels = false; + // If MediaTransportFactory is provided in PeerConnectionFactory, this flag + // informs PeerConnection that it should use the DatagramTransportInterface + // for packets instead DTLS. It's invalid to set it to |true| if the + // MediaTransportFactory wasn't provided. + // + // TODO(sukhanov): Once we have a working mechanism for negotiating media + // transport through SDP, we replace media transport flags in + // RTCConfiguration with field trials. + bool use_datagram_transport = false; + // Defines advanced optional cryptographic settings related to SRTP and // frame encryption for native WebRTC. Setting this will overwrite any // settings set in PeerConnectionFactory (which is deprecated).