| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 bool conference_mode() const { return conference_mode_; } | 302 bool conference_mode() const { return conference_mode_; } |
| 303 | 303 |
| 304 void set_partial(bool partial) { partial_ = partial; } | 304 void set_partial(bool partial) { partial_ = partial; } |
| 305 bool partial() const { return partial_; } | 305 bool partial() const { return partial_; } |
| 306 | 306 |
| 307 void set_buffered_mode_latency(int latency) { | 307 void set_buffered_mode_latency(int latency) { |
| 308 buffered_mode_latency_ = latency; | 308 buffered_mode_latency_ = latency; |
| 309 } | 309 } |
| 310 int buffered_mode_latency() const { return buffered_mode_latency_; } | 310 int buffered_mode_latency() const { return buffered_mode_latency_; } |
| 311 | 311 |
| 312 // https://tools.ietf.org/html/rfc4566#section-5.7 |
| 313 // May be present at the media or session level of SDP. If present at both |
| 314 // levels, the media-level attribute overwrites the session-level one. |
| 315 void set_connection_address(const rtc::SocketAddress& address) { |
| 316 connection_address_ = address; |
| 317 } |
| 318 const rtc::SocketAddress& connection_address() const { |
| 319 return connection_address_; |
| 320 } |
| 321 |
| 312 protected: | 322 protected: |
| 313 bool rtcp_mux_ = false; | 323 bool rtcp_mux_ = false; |
| 314 bool rtcp_reduced_size_ = false; | 324 bool rtcp_reduced_size_ = false; |
| 315 int bandwidth_ = kAutoBandwidth; | 325 int bandwidth_ = kAutoBandwidth; |
| 316 std::string protocol_; | 326 std::string protocol_; |
| 317 std::vector<CryptoParams> cryptos_; | 327 std::vector<CryptoParams> cryptos_; |
| 318 CryptoType crypto_required_ = CT_NONE; | 328 CryptoType crypto_required_ = CT_NONE; |
| 319 std::vector<webrtc::RtpExtension> rtp_header_extensions_; | 329 std::vector<webrtc::RtpExtension> rtp_header_extensions_; |
| 320 bool rtp_header_extensions_set_ = false; | 330 bool rtp_header_extensions_set_ = false; |
| 321 bool multistream_ = false; | 331 bool multistream_ = false; |
| 322 StreamParamsVec streams_; | 332 StreamParamsVec streams_; |
| 323 bool conference_mode_ = false; | 333 bool conference_mode_ = false; |
| 324 bool partial_ = false; | 334 bool partial_ = false; |
| 325 int buffered_mode_latency_ = kBufferedModeDisabled; | 335 int buffered_mode_latency_ = kBufferedModeDisabled; |
| 326 MediaContentDirection direction_ = MD_SENDRECV; | 336 MediaContentDirection direction_ = MD_SENDRECV; |
| 337 rtc::SocketAddress connection_address_; |
| 327 }; | 338 }; |
| 328 | 339 |
| 329 template <class C> | 340 template <class C> |
| 330 class MediaContentDescriptionImpl : public MediaContentDescription { | 341 class MediaContentDescriptionImpl : public MediaContentDescription { |
| 331 public: | 342 public: |
| 332 typedef C CodecType; | 343 typedef C CodecType; |
| 333 | 344 |
| 334 // Codecs should be in preference order (most preferred codec first). | 345 // Codecs should be in preference order (most preferred codec first). |
| 335 const std::vector<C>& codecs() const { return codecs_; } | 346 const std::vector<C>& codecs() const { return codecs_; } |
| 336 void set_codecs(const std::vector<C>& codecs) { codecs_ = codecs; } | 347 void set_codecs(const std::vector<C>& codecs) { codecs_ = codecs; } |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 626 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 616 std::vector<std::string>* crypto_suite_names); | 627 std::vector<std::string>* crypto_suite_names); |
| 617 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 628 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 618 std::vector<std::string>* crypto_suite_names); | 629 std::vector<std::string>* crypto_suite_names); |
| 619 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 630 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
| 620 std::vector<std::string>* crypto_suite_names); | 631 std::vector<std::string>* crypto_suite_names); |
| 621 | 632 |
| 622 } // namespace cricket | 633 } // namespace cricket |
| 623 | 634 |
| 624 #endif // WEBRTC_PC_MEDIASESSION_H_ | 635 #endif // WEBRTC_PC_MEDIASESSION_H_ |
| OLD | NEW |