diff --git a/api/datagram_transport_interface.h b/api/datagram_transport_interface.h index d64c0f3c3b..271b951c8e 100644 --- a/api/datagram_transport_interface.h +++ b/api/datagram_transport_interface.h @@ -16,6 +16,7 @@ #include #include +#include "absl/types/optional.h" #include "api/array_view.h" #include "api/congestion_control_interface.h" #include "api/media_transport_interface.h" @@ -93,6 +94,18 @@ class DatagramTransportInterface { // SetDataTransportSink(nullptr) before the data transport is destroyed or // before new sink is set. virtual void SetDatagramSink(DatagramSinkInterface* sink) = 0; + + // Retrieves callers config (i.e. media transport offer) that should be passed + // to the callee, before the call is connected. Such config is opaque to SDP + // (sdp just passes it through). The config is a binary blob, so SDP may + // choose to use base64 to serialize it (or any other approach that guarantees + // that the binary blob goes through). This should only be called for the + // caller's perspective. + // + // TODO(sukhanov): Make pure virtual. + virtual absl::optional GetTransportParametersOffer() const { + return absl::nullopt; + } }; } // namespace webrtc