From dc4c49c305cd051beaaebc348e4f9e55b882da9b Mon Sep 17 00:00:00 2001 From: Barrett17 Date: Sat, 24 Feb 2018 15:24:23 +0100 Subject: [PATCH] MediaConnection: Introduce Endpoint() method. * Used to get the other side of a connection when available. --- headers/private/media/experimental/MediaConnection.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/private/media/experimental/MediaConnection.h b/headers/private/media/experimental/MediaConnection.h index a00095ddc0..fafbb4ffae 100644 --- a/headers/private/media/experimental/MediaConnection.h +++ b/headers/private/media/experimental/MediaConnection.h @@ -39,6 +39,10 @@ public: bool IsConnected() const; + // If the connection is connected get the other endpoint, + // return media_connection::null otherwise. + media_connection Endpoint(); + // This allow to specify a format that will be used while // connecting to another node. void SetAcceptedFormat(