Chromium Code Reviews| Index: webrtc/pc/mediasession.h |
| diff --git a/webrtc/pc/mediasession.h b/webrtc/pc/mediasession.h |
| index a901e1d75a3e75c129f40d1b1c7694eea55ab8ae..fd0432fa645ef999ef7ccd8db54e9d4ddc8d84e1 100644 |
| --- a/webrtc/pc/mediasession.h |
| +++ b/webrtc/pc/mediasession.h |
| @@ -309,6 +309,14 @@ class MediaContentDescription : public ContentDescription { |
| } |
| int buffered_mode_latency() const { return buffered_mode_latency_; } |
| + void set_media_connection_addr( |
| + const rtc::Optional<rtc::SocketAddress>& addr) { |
| + media_connection_addr_ = addr; |
| + } |
| + rtc::Optional<rtc::SocketAddress> media_connection_addr() { |
|
Taylor Brandstetter
2017/03/10 22:41:17
This doesn't need to be an Optional since a value
Zhi Huang
2017/03/15 04:04:59
Done.
|
| + return media_connection_addr_; |
| + } |
| + |
| protected: |
| bool rtcp_mux_ = false; |
| bool rtcp_reduced_size_ = false; |
| @@ -324,6 +332,10 @@ class MediaContentDescription : public ContentDescription { |
| bool partial_ = false; |
| int buffered_mode_latency_ = kBufferedModeDisabled; |
| MediaContentDirection direction_ = MD_SENDRECV; |
| + // https://tools.ietf.org/html/rfc4566#page-21 |
|
Taylor Brandstetter
2017/03/10 22:41:17
nit: Can link directly to the relevant section:
ht
Zhi Huang
2017/03/15 04:04:59
Done.
|
| + // Media level connection address. If this is specified, it will overwrite the |
| + // session level address. |
| + rtc::Optional<rtc::SocketAddress> media_connection_addr_; |
| }; |
| template <class C> |