blob: 81b925d5808ba215deec57dcbc94e9349f6a488c [file] [log] [blame]
Danil Chapovalov398a7c62017-10-24 17:07:05 +02001/*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_CONFIG_H_
12#define MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_CONFIG_H_
13
14#include <string>
15
16namespace webrtc {
17class ReceiveStatisticsProvider;
18class Transport;
19
20struct RtcpTransceiverConfig {
21 RtcpTransceiverConfig();
22 RtcpTransceiverConfig(const RtcpTransceiverConfig&);
23 RtcpTransceiverConfig& operator=(const RtcpTransceiverConfig&);
24 ~RtcpTransceiverConfig();
25
26 // Logs the error and returns false if configuration miss key objects or
27 // is inconsistant. May log warnings.
28 bool Validate() const;
29
30 // Used to prepend all log messages. Can be empty.
31 std::string debug_id;
32
33 // Ssrc to use as default sender ssrc, e.g. for transport-wide feedbacks.
34 uint32_t feedback_ssrc = 1;
35
36 // Cname of the local particiapnt.
37 std::string cname;
38
39 // Maximum packet size outgoing transport accepts.
40 size_t max_packet_size = 1200;
41
42 // Transport to send rtcp packets to. Should be set.
43 Transport* outgoing_transport = nullptr;
44
45 // Minimum period to send receiver reports and attached messages.
46 int min_periodic_report_ms = 1000;
47
48 // Rtcp report block generator for outgoing receiver reports.
49 ReceiveStatisticsProvider* receive_statistics = nullptr;
50};
51
52} // namespace webrtc
53
54#endif // MODULES_RTP_RTCP_SOURCE_RTCP_TRANSCEIVER_CONFIG_H_