OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 size_t mediasection_index) const; | 65 size_t mediasection_index) const; |
66 virtual bool ToString(std::string* out) const; | 66 virtual bool ToString(std::string* out) const; |
67 | 67 |
68 // Default video encoder settings. The resolution is the max resolution. | 68 // Default video encoder settings. The resolution is the max resolution. |
69 // TODO(perkj): Implement proper negotiation of video resolution. | 69 // TODO(perkj): Implement proper negotiation of video resolution. |
70 static const int kDefaultVideoCodecId; | 70 static const int kDefaultVideoCodecId; |
71 static const int kDefaultVideoCodecFramerate; | 71 static const int kDefaultVideoCodecFramerate; |
72 static const char kDefaultVideoCodecName[]; | 72 static const char kDefaultVideoCodecName[]; |
73 static const int kMaxVideoCodecWidth; | 73 static const int kMaxVideoCodecWidth; |
74 static const int kMaxVideoCodecHeight; | 74 static const int kMaxVideoCodecHeight; |
75 static const int kDefaultVideoCodecPreference; | |
76 | 75 |
77 private: | 76 private: |
78 rtc::scoped_ptr<cricket::SessionDescription> description_; | 77 rtc::scoped_ptr<cricket::SessionDescription> description_; |
79 std::string session_id_; | 78 std::string session_id_; |
80 std::string session_version_; | 79 std::string session_version_; |
81 std::string type_; | 80 std::string type_; |
82 std::vector<JsepCandidateCollection> candidate_collection_; | 81 std::vector<JsepCandidateCollection> candidate_collection_; |
83 | 82 |
84 bool GetMediasectionIndex(const IceCandidateInterface* candidate, | 83 bool GetMediasectionIndex(const IceCandidateInterface* candidate, |
85 size_t* index); | 84 size_t* index); |
86 int GetMediasectionIndex(const cricket::Candidate& candidate); | 85 int GetMediasectionIndex(const cricket::Candidate& candidate); |
87 | 86 |
88 RTC_DISALLOW_COPY_AND_ASSIGN(JsepSessionDescription); | 87 RTC_DISALLOW_COPY_AND_ASSIGN(JsepSessionDescription); |
89 }; | 88 }; |
90 | 89 |
91 } // namespace webrtc | 90 } // namespace webrtc |
92 | 91 |
93 #endif // WEBRTC_API_JSEPSESSIONDESCRIPTION_H_ | 92 #endif // WEBRTC_API_JSEPSESSIONDESCRIPTION_H_ |
OLD | NEW |