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 |
11 // Types and classes used in media session descriptions. | 11 // Types and classes used in media session descriptions. |
12 | 12 |
13 #ifndef WEBRTC_PC_MEDIASESSION_H_ | 13 #ifndef WEBRTC_PC_MEDIASESSION_H_ |
14 #define WEBRTC_PC_MEDIASESSION_H_ | 14 #define WEBRTC_PC_MEDIASESSION_H_ |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <map> | 17 #include <map> |
18 #include <string> | 18 #include <string> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
| 21 #include "webrtc/api/mediatypes.h" |
21 #include "webrtc/media/base/codec.h" | 22 #include "webrtc/media/base/codec.h" |
22 #include "webrtc/media/base/cryptoparams.h" | 23 #include "webrtc/media/base/cryptoparams.h" |
23 #include "webrtc/media/base/mediachannel.h" | 24 #include "webrtc/media/base/mediachannel.h" |
24 #include "webrtc/media/base/mediaconstants.h" | 25 #include "webrtc/media/base/mediaconstants.h" |
25 #include "webrtc/media/base/mediaengine.h" // For DataChannelType | 26 #include "webrtc/media/base/mediaengine.h" // For DataChannelType |
26 #include "webrtc/media/base/streamparams.h" | 27 #include "webrtc/media/base/streamparams.h" |
27 #include "webrtc/p2p/base/sessiondescription.h" | 28 #include "webrtc/p2p/base/sessiondescription.h" |
28 #include "webrtc/p2p/base/jseptransport.h" | 29 #include "webrtc/p2p/base/jseptransport.h" |
29 #include "webrtc/p2p/base/transportdescriptionfactory.h" | 30 #include "webrtc/p2p/base/transportdescriptionfactory.h" |
30 | 31 |
31 namespace cricket { | 32 namespace cricket { |
32 | 33 |
33 class ChannelManager; | 34 class ChannelManager; |
34 typedef std::vector<AudioCodec> AudioCodecs; | 35 typedef std::vector<AudioCodec> AudioCodecs; |
35 typedef std::vector<VideoCodec> VideoCodecs; | 36 typedef std::vector<VideoCodec> VideoCodecs; |
36 typedef std::vector<DataCodec> DataCodecs; | 37 typedef std::vector<DataCodec> DataCodecs; |
37 typedef std::vector<CryptoParams> CryptoParamsVec; | 38 typedef std::vector<CryptoParams> CryptoParamsVec; |
38 typedef std::vector<webrtc::RtpExtension> RtpHeaderExtensions; | 39 typedef std::vector<webrtc::RtpExtension> RtpHeaderExtensions; |
39 | 40 |
40 enum MediaType { | |
41 MEDIA_TYPE_AUDIO, | |
42 MEDIA_TYPE_VIDEO, | |
43 MEDIA_TYPE_DATA | |
44 }; | |
45 | |
46 std::string MediaTypeToString(MediaType type); | |
47 | |
48 enum MediaContentDirection { | 41 enum MediaContentDirection { |
49 MD_INACTIVE, | 42 MD_INACTIVE, |
50 MD_SENDONLY, | 43 MD_SENDONLY, |
51 MD_RECVONLY, | 44 MD_RECVONLY, |
52 MD_SENDRECV | 45 MD_SENDRECV |
53 }; | 46 }; |
54 | 47 |
55 std::string MediaContentDirectionToString(MediaContentDirection direction); | 48 std::string MediaContentDirectionToString(MediaContentDirection direction); |
56 | 49 |
57 enum CryptoType { | 50 enum CryptoType { |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 602 void GetSupportedVideoCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
610 std::vector<std::string>* crypto_suite_names); | 603 std::vector<std::string>* crypto_suite_names); |
611 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 604 void GetSupportedDataCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
612 std::vector<std::string>* crypto_suite_names); | 605 std::vector<std::string>* crypto_suite_names); |
613 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, | 606 void GetDefaultSrtpCryptoSuiteNames(const rtc::CryptoOptions& crypto_options, |
614 std::vector<std::string>* crypto_suite_names); | 607 std::vector<std::string>* crypto_suite_names); |
615 | 608 |
616 } // namespace cricket | 609 } // namespace cricket |
617 | 610 |
618 #endif // WEBRTC_PC_MEDIASESSION_H_ | 611 #endif // WEBRTC_PC_MEDIASESSION_H_ |
OLD | NEW |