OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2011 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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 AddLine(os.str(), message); | 1501 AddLine(os.str(), message); |
1502 } | 1502 } |
1503 | 1503 |
1504 // RFC 5506 | 1504 // RFC 5506 |
1505 // a=rtcp-rsize | 1505 // a=rtcp-rsize |
1506 if (media_desc->rtcp_reduced_size()) { | 1506 if (media_desc->rtcp_reduced_size()) { |
1507 InitAttrLine(kAttributeRtcpReducedSize, &os); | 1507 InitAttrLine(kAttributeRtcpReducedSize, &os); |
1508 AddLine(os.str(), message); | 1508 AddLine(os.str(), message); |
1509 } | 1509 } |
1510 | 1510 |
| 1511 if (media_desc->conference_mode()) { |
| 1512 InitAttrLine(kAttributeXGoogleFlag, &os); |
| 1513 os << kSdpDelimiterColon << kValueConference; |
| 1514 AddLine(os.str(), message); |
| 1515 } |
| 1516 |
1511 // RFC 4568 | 1517 // RFC 4568 |
1512 // a=crypto:<tag> <crypto-suite> <key-params> [<session-params>] | 1518 // a=crypto:<tag> <crypto-suite> <key-params> [<session-params>] |
1513 for (std::vector<CryptoParams>::const_iterator it = | 1519 for (std::vector<CryptoParams>::const_iterator it = |
1514 media_desc->cryptos().begin(); | 1520 media_desc->cryptos().begin(); |
1515 it != media_desc->cryptos().end(); ++it) { | 1521 it != media_desc->cryptos().end(); ++it) { |
1516 InitAttrLine(kAttributeCrypto, &os); | 1522 InitAttrLine(kAttributeCrypto, &os); |
1517 os << kSdpDelimiterColon << it->tag << " " << it->cipher_suite << " " | 1523 os << kSdpDelimiterColon << it->tag << " " << it->cipher_suite << " " |
1518 << it->key_params; | 1524 << it->key_params; |
1519 if (!it->session_params.empty()) { | 1525 if (!it->session_params.empty()) { |
1520 os << " " << it->session_params; | 1526 os << " " << it->session_params; |
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3327 UpdateCodec<AudioContentDescription, cricket::AudioCodec>( | 3333 UpdateCodec<AudioContentDescription, cricket::AudioCodec>( |
3328 media_desc, payload_type, feedback_param); | 3334 media_desc, payload_type, feedback_param); |
3329 } else if (media_type == cricket::MEDIA_TYPE_VIDEO) { | 3335 } else if (media_type == cricket::MEDIA_TYPE_VIDEO) { |
3330 UpdateCodec<VideoContentDescription, cricket::VideoCodec>( | 3336 UpdateCodec<VideoContentDescription, cricket::VideoCodec>( |
3331 media_desc, payload_type, feedback_param); | 3337 media_desc, payload_type, feedback_param); |
3332 } | 3338 } |
3333 return true; | 3339 return true; |
3334 } | 3340 } |
3335 | 3341 |
3336 } // namespace webrtc | 3342 } // namespace webrtc |
OLD | NEW |