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 28 matching lines...) Expand all Loading... |
39 void GetSupportedCryptoSuiteNames(void (*func)(std::vector<int>*), | 39 void GetSupportedCryptoSuiteNames(void (*func)(std::vector<int>*), |
40 std::vector<std::string>* names) { | 40 std::vector<std::string>* names) { |
41 #ifdef HAVE_SRTP | 41 #ifdef HAVE_SRTP |
42 std::vector<int> crypto_suites; | 42 std::vector<int> crypto_suites; |
43 func(&crypto_suites); | 43 func(&crypto_suites); |
44 for (const auto crypto : crypto_suites) { | 44 for (const auto crypto : crypto_suites) { |
45 names->push_back(rtc::SrtpCryptoSuiteToName(crypto)); | 45 names->push_back(rtc::SrtpCryptoSuiteToName(crypto)); |
46 } | 46 } |
47 #endif | 47 #endif |
48 } | 48 } |
49 } | 49 } // namespace |
50 | 50 |
51 namespace cricket { | 51 namespace cricket { |
52 | 52 |
53 | 53 |
54 // RTP Profile names | 54 // RTP Profile names |
55 // http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xml | 55 // http://www.iana.org/assignments/rtp-parameters/rtp-parameters.xml |
56 // RFC4585 | 56 // RFC4585 |
57 const char kMediaProtocolAvpf[] = "RTP/AVPF"; | 57 const char kMediaProtocolAvpf[] = "RTP/AVPF"; |
58 // RFC5124 | 58 // RFC5124 |
59 const char kMediaProtocolDtlsSavpf[] = "UDP/TLS/RTP/SAVPF"; | 59 const char kMediaProtocolDtlsSavpf[] = "UDP/TLS/RTP/SAVPF"; |
(...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); | 2004 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_VIDEO)); |
2005 } | 2005 } |
2006 | 2006 |
2007 const DataContentDescription* GetFirstDataContentDescription( | 2007 const DataContentDescription* GetFirstDataContentDescription( |
2008 const SessionDescription* sdesc) { | 2008 const SessionDescription* sdesc) { |
2009 return static_cast<const DataContentDescription*>( | 2009 return static_cast<const DataContentDescription*>( |
2010 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); | 2010 GetFirstMediaContentDescription(sdesc, MEDIA_TYPE_DATA)); |
2011 } | 2011 } |
2012 | 2012 |
2013 } // namespace cricket | 2013 } // namespace cricket |
OLD | NEW |