OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 // TODO(pbos): Move Config from common.h to here. | 11 // TODO(pbos): Move Config from common.h to here. |
12 | 12 |
13 #ifndef WEBRTC_CONFIG_H_ | 13 #ifndef WEBRTC_CONFIG_H_ |
14 #define WEBRTC_CONFIG_H_ | 14 #define WEBRTC_CONFIG_H_ |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/common.h" | 19 #include "webrtc/common.h" |
20 #include "webrtc/common_types.h" | 20 #include "webrtc/common_types.h" |
21 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 // Settings for NACK, see RFC 4585 for details. | 25 // Settings for NACK, see RFC 4585 for details. |
26 struct NackConfig { | 26 struct NackConfig { |
27 NackConfig() : rtp_history_ms(0) {} | 27 NackConfig() : rtp_history_ms(0) {} |
| 28 std::string ToString() const; |
28 // Send side: the time RTP packets are stored for retransmissions. | 29 // Send side: the time RTP packets are stored for retransmissions. |
29 // Receive side: the time the receiver is prepared to wait for | 30 // Receive side: the time the receiver is prepared to wait for |
30 // retransmissions. | 31 // retransmissions. |
31 // Set to '0' to disable. | 32 // Set to '0' to disable. |
32 int rtp_history_ms; | 33 int rtp_history_ms; |
33 }; | 34 }; |
34 | 35 |
35 // Settings for forward error correction, see RFC 5109 for details. Set the | 36 // Settings for forward error correction, see RFC 5109 for details. Set the |
36 // payload types to '-1' to disable. | 37 // payload types to '-1' to disable. |
37 struct FecConfig { | 38 struct FecConfig { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 struct VoicePacing { | 170 struct VoicePacing { |
170 VoicePacing() : enabled(false) {} | 171 VoicePacing() : enabled(false) {} |
171 explicit VoicePacing(bool value) : enabled(value) {} | 172 explicit VoicePacing(bool value) : enabled(value) {} |
172 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing; | 173 static const ConfigOptionID identifier = ConfigOptionID::kVoicePacing; |
173 bool enabled; | 174 bool enabled; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace webrtc | 177 } // namespace webrtc |
177 | 178 |
178 #endif // WEBRTC_CONFIG_H_ | 179 #endif // WEBRTC_CONFIG_H_ |
OLD | NEW |