Chromium Code Reviews| Index: webrtc/pc/mediasession.h |
| diff --git a/webrtc/pc/mediasession.h b/webrtc/pc/mediasession.h |
| index a901e1d75a3e75c129f40d1b1c7694eea55ab8ae..4037214782f423e368da60722ea2ab93c04474b8 100644 |
| --- a/webrtc/pc/mediasession.h |
| +++ b/webrtc/pc/mediasession.h |
| @@ -309,6 +309,16 @@ class MediaContentDescription : public ContentDescription { |
| } |
| int buffered_mode_latency() const { return buffered_mode_latency_; } |
| + // https://tools.ietf.org/html/rfc4566#section-5.7 |
| + // May be present at the media or session level of SDP. If present at both |
| + // levels, the media-level attribute overwrites the session-level one. |
| + void set_connection_address(const rtc::SocketAddress& addr) { |
| + connection_addr_ = addr; |
|
Taylor Brandstetter
2017/03/17 00:20:42
nit: May be confusing that the variable name is "c
Zhi Huang
2017/03/17 23:42:06
Done.
|
| + } |
| + const rtc::SocketAddress& connection_address() const { |
| + return connection_addr_; |
| + } |
| + |
| protected: |
| bool rtcp_mux_ = false; |
| bool rtcp_reduced_size_ = false; |
| @@ -324,6 +334,7 @@ class MediaContentDescription : public ContentDescription { |
| bool partial_ = false; |
| int buffered_mode_latency_ = kBufferedModeDisabled; |
| MediaContentDirection direction_ = MD_SENDRECV; |
| + rtc::SocketAddress connection_addr_; |
| }; |
| template <class C> |