|  | /* | 
|  | *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 
|  | * | 
|  | *  Use of this source code is governed by a BSD-style license | 
|  | *  that can be found in the LICENSE file in the root of the source | 
|  | *  tree. An additional intellectual property rights grant can be found | 
|  | *  in the file PATENTS.  All contributing project authors may | 
|  | *  be found in the AUTHORS file in the root of the source tree. | 
|  | */ | 
|  |  | 
|  | #ifndef CALL_RTP_CONFIG_H_ | 
|  | #define CALL_RTP_CONFIG_H_ | 
|  |  | 
|  | #include <string> | 
|  |  | 
|  | namespace webrtc { | 
|  | // Settings for NACK, see RFC 4585 for details. | 
|  | struct NackConfig { | 
|  | NackConfig() : rtp_history_ms(0) {} | 
|  | std::string ToString() const; | 
|  | // Send side: the time RTP packets are stored for retransmissions. | 
|  | // Receive side: the time the receiver is prepared to wait for | 
|  | // retransmissions. | 
|  | // Set to '0' to disable. | 
|  | int rtp_history_ms; | 
|  | }; | 
|  |  | 
|  | // Settings for ULPFEC forward error correction. | 
|  | // Set the payload types to '-1' to disable. | 
|  | struct UlpfecConfig { | 
|  | UlpfecConfig() | 
|  | : ulpfec_payload_type(-1), | 
|  | red_payload_type(-1), | 
|  | red_rtx_payload_type(-1) {} | 
|  | std::string ToString() const; | 
|  | bool operator==(const UlpfecConfig& other) const; | 
|  |  | 
|  | // Payload type used for ULPFEC packets. | 
|  | int ulpfec_payload_type; | 
|  |  | 
|  | // Payload type used for RED packets. | 
|  | int red_payload_type; | 
|  |  | 
|  | // RTX payload type for RED payload. | 
|  | int red_rtx_payload_type; | 
|  | }; | 
|  | }  // namespace webrtc | 
|  | #endif  // CALL_RTP_CONFIG_H_ |