OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 return -1; | 194 return -1; |
195 } | 195 } |
196 | 196 |
197 // Gets the RED status on a specific |channel|. | 197 // Gets the RED status on a specific |channel|. |
198 // TODO(minyue): Make GetREDStatus() pure virtual when fakewebrtcvoiceengine | 198 // TODO(minyue): Make GetREDStatus() pure virtual when fakewebrtcvoiceengine |
199 // in talk is ready. | 199 // in talk is ready. |
200 virtual int GetREDStatus(int channel, bool& enabled, int& redPayloadtype) { | 200 virtual int GetREDStatus(int channel, bool& enabled, int& redPayloadtype) { |
201 return -1; | 201 return -1; |
202 } | 202 } |
203 | 203 |
204 // Sets the Forward Error Correction (FEC) status on a specific |channel|. | |
205 // TODO(minyue): Remove SetFECStatus() when SetFECStatus() is replaced by | |
206 // SetREDStatus() in fakewebrtcvoiceengine. | |
207 virtual int SetFECStatus(int channel, bool enable, int redPayloadtype = -1) { | |
208 return SetREDStatus(channel, enable, redPayloadtype); | |
209 }; | |
210 | |
211 // Gets the FEC status on a specific |channel|. | |
212 // TODO(minyue): Remove GetFECStatus() when GetFECStatus() is replaced by | |
213 // GetREDStatus() in fakewebrtcvoiceengine. | |
214 virtual int GetFECStatus(int channel, bool& enabled, int& redPayloadtype) { | |
215 return SetREDStatus(channel, enabled, redPayloadtype); | |
216 } | |
217 | |
218 // This function enables Negative Acknowledgment (NACK) using RTCP, | 204 // This function enables Negative Acknowledgment (NACK) using RTCP, |
219 // implemented based on RFC 4585. NACK retransmits RTP packets if lost on | 205 // implemented based on RFC 4585. NACK retransmits RTP packets if lost on |
220 // the network. This creates a lossless transport at the expense of delay. | 206 // the network. This creates a lossless transport at the expense of delay. |
221 // If using NACK, NACK should be enabled on both endpoints in a call. | 207 // If using NACK, NACK should be enabled on both endpoints in a call. |
222 virtual int SetNACKStatus(int channel, bool enable, int maxNoPackets) = 0; | 208 virtual int SetNACKStatus(int channel, bool enable, int maxNoPackets) = 0; |
223 | 209 |
224 protected: | 210 protected: |
225 VoERTP_RTCP() {} | 211 VoERTP_RTCP() {} |
226 virtual ~VoERTP_RTCP() {} | 212 virtual ~VoERTP_RTCP() {} |
227 }; | 213 }; |
228 | 214 |
229 } // namespace webrtc | 215 } // namespace webrtc |
230 | 216 |
231 #endif // #ifndef WEBRTC_VOICE_ENGINE_VOE_RTP_RTCP_H | 217 #endif // #ifndef WEBRTC_VOICE_ENGINE_VOE_RTP_RTCP_H |
OLD | NEW |