2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-01-24 17:16:59 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* 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 WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
|
|
|
|
|
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
|
|
|
|
|
|
2012-01-19 15:53:09 +00:00
|
|
|
#include <map>
|
2016-03-22 11:14:09 -07:00
|
|
|
#include <memory>
|
2015-05-11 10:17:43 +02:00
|
|
|
#include <set>
|
2013-04-04 19:43:34 +00:00
|
|
|
#include <sstream>
|
|
|
|
|
#include <string>
|
2015-12-10 05:05:27 -08:00
|
|
|
#include <vector>
|
2012-01-19 15:53:09 +00:00
|
|
|
|
2016-11-28 07:02:13 -08:00
|
|
|
#include "webrtc/api/call/transport.h"
|
2016-04-26 08:14:39 -07:00
|
|
|
#include "webrtc/base/constructormagic.h"
|
2016-03-22 11:14:09 -07:00
|
|
|
#include "webrtc/base/criticalsection.h"
|
2016-12-01 05:18:09 -08:00
|
|
|
#include "webrtc/base/optional.h"
|
2015-12-15 00:30:07 -08:00
|
|
|
#include "webrtc/base/random.h"
|
2014-09-24 06:05:00 +00:00
|
|
|
#include "webrtc/base/thread_annotations.h"
|
2013-05-29 14:27:38 +00:00
|
|
|
#include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h"
|
|
|
|
|
#include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h"
|
2015-11-04 08:31:52 +01:00
|
|
|
#include "webrtc/modules/rtp_rtcp/include/receive_statistics.h"
|
|
|
|
|
#include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
2015-06-22 15:21:24 +02:00
|
|
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
|
2016-09-28 02:54:25 -07:00
|
|
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/dlrr.h"
|
2016-01-18 02:43:32 -08:00
|
|
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block.h"
|
2016-05-24 13:25:27 -07:00
|
|
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h"
|
2013-05-29 14:27:38 +00:00
|
|
|
#include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h"
|
|
|
|
|
#include "webrtc/typedefs.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
2011-09-20 13:52:04 +00:00
|
|
|
|
2013-08-15 23:38:54 +00:00
|
|
|
class ModuleRtpRtcpImpl;
|
2016-01-21 05:42:04 -08:00
|
|
|
class RtcEventLog;
|
2011-09-20 13:52:04 +00:00
|
|
|
|
2015-01-21 08:22:50 +00:00
|
|
|
class NACKStringBuilder {
|
|
|
|
|
public:
|
|
|
|
|
NACKStringBuilder();
|
|
|
|
|
~NACKStringBuilder();
|
|
|
|
|
|
|
|
|
|
void PushNACK(uint16_t nack);
|
|
|
|
|
std::string GetResult();
|
|
|
|
|
|
|
|
|
|
private:
|
2015-05-11 10:17:43 +02:00
|
|
|
std::ostringstream stream_;
|
|
|
|
|
int count_;
|
|
|
|
|
uint16_t prevNack_;
|
|
|
|
|
bool consecutive_;
|
2013-04-04 19:43:34 +00:00
|
|
|
};
|
|
|
|
|
|
2015-01-21 08:22:50 +00:00
|
|
|
class RTCPSender {
|
2015-12-10 02:39:40 -08:00
|
|
|
public:
|
|
|
|
|
struct FeedbackState {
|
|
|
|
|
FeedbackState();
|
|
|
|
|
|
|
|
|
|
uint8_t send_payload_type;
|
|
|
|
|
uint32_t packets_sent;
|
|
|
|
|
size_t media_bytes_sent;
|
|
|
|
|
uint32_t send_bitrate;
|
|
|
|
|
|
|
|
|
|
uint32_t last_rr_ntp_secs;
|
|
|
|
|
uint32_t last_rr_ntp_frac;
|
|
|
|
|
uint32_t remote_sr;
|
|
|
|
|
|
|
|
|
|
bool has_last_xr_rr;
|
2016-09-28 02:54:25 -07:00
|
|
|
rtcp::ReceiveTimeInfo last_xr_rr;
|
2015-12-10 02:39:40 -08:00
|
|
|
|
|
|
|
|
// Used when generating TMMBR.
|
|
|
|
|
ModuleRtpRtcpImpl* module;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
RTCPSender(bool audio,
|
|
|
|
|
Clock* clock,
|
|
|
|
|
ReceiveStatistics* receive_statistics,
|
|
|
|
|
RtcpPacketTypeCounterObserver* packet_type_counter_observer,
|
2016-01-21 05:42:04 -08:00
|
|
|
RtcEventLog* event_log,
|
2015-12-10 02:39:40 -08:00
|
|
|
Transport* outgoing_transport);
|
|
|
|
|
virtual ~RTCPSender();
|
|
|
|
|
|
|
|
|
|
RtcpMode Status() const;
|
|
|
|
|
void SetRTCPStatus(RtcpMode method);
|
|
|
|
|
|
|
|
|
|
bool Sending() const;
|
|
|
|
|
int32_t SetSendingStatus(const FeedbackState& feedback_state,
|
|
|
|
|
bool enabled); // combine the functions
|
2013-09-09 16:02:19 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t SetNackStatus(bool enable);
|
2013-09-09 16:02:19 +00:00
|
|
|
|
2016-08-18 02:01:49 -07:00
|
|
|
void SetTimestampOffset(uint32_t timestamp_offset);
|
2013-09-09 16:02:19 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetLastRtpTime(uint32_t rtp_timestamp, int64_t capture_time_ms);
|
2013-10-02 13:15:34 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetSSRC(uint32_t ssrc);
|
2015-04-27 13:32:52 +02:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetRemoteSSRC(uint32_t ssrc);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t SetCNAME(const char* cName);
|
2012-09-11 07:00:42 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t AddMixedCNAME(uint32_t SSRC, const char* c_name);
|
2012-09-11 07:00:42 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t RemoveMixedCNAME(uint32_t SSRC);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
bool TimeToSendRTCPReport(bool sendKeyframeBeforeRTP = false) const;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t SendRTCP(const FeedbackState& feedback_state,
|
|
|
|
|
RTCPPacketType packetType,
|
|
|
|
|
int32_t nackSize = 0,
|
|
|
|
|
const uint16_t* nackList = 0,
|
|
|
|
|
bool repeat = false,
|
|
|
|
|
uint64_t pictureID = 0);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t SendCompoundRTCP(const FeedbackState& feedback_state,
|
|
|
|
|
const std::set<RTCPPacketType>& packetTypes,
|
|
|
|
|
int32_t nackSize = 0,
|
|
|
|
|
const uint16_t* nackList = 0,
|
|
|
|
|
bool repeat = false,
|
|
|
|
|
uint64_t pictureID = 0);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
bool REMB() const;
|
2013-10-02 13:15:34 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetREMBStatus(bool enable);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetREMBData(uint32_t bitrate, const std::vector<uint32_t>& ssrcs);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
bool TMMBR() const;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SetTMMBRStatus(bool enable);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2016-03-30 11:11:51 -07:00
|
|
|
void SetMaxPayloadLength(size_t max_payload_length);
|
|
|
|
|
|
2016-08-22 08:26:15 -07:00
|
|
|
void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set);
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
int32_t SetApplicationSpecificData(uint8_t subType,
|
|
|
|
|
uint32_t name,
|
|
|
|
|
const uint8_t* data,
|
|
|
|
|
uint16_t length);
|
|
|
|
|
int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric);
|
2015-05-11 10:17:43 +02:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
void SendRtcpXrReceiverReferenceTime(bool enable);
|
|
|
|
|
|
|
|
|
|
bool RtcpXrReceiverReferenceTime() const;
|
|
|
|
|
|
|
|
|
|
void SetCsrcs(const std::vector<uint32_t>& csrcs);
|
|
|
|
|
|
|
|
|
|
void SetTargetBitrate(unsigned int target_bitrate);
|
2016-12-01 05:18:09 -08:00
|
|
|
void SetVideoBitrateAllocation(const BitrateAllocation& bitrate);
|
2015-12-10 02:39:40 -08:00
|
|
|
bool SendFeedbackPacket(const rtcp::TransportFeedback& packet);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class RtcpContext;
|
|
|
|
|
|
|
|
|
|
// Determine which RTCP messages should be sent and setup flags.
|
2016-07-20 15:26:59 +02:00
|
|
|
void PrepareReport(const FeedbackState& feedback_state)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
|
2015-12-22 08:07:45 -08:00
|
|
|
bool AddReportBlock(const FeedbackState& feedback_state,
|
|
|
|
|
uint32_t ssrc,
|
|
|
|
|
StreamStatistician* statistician)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildSR(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildRR(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildSDES(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildPLI(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildREMB(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildTMMBR(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildTMMBN(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildAPP(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-12-01 05:18:09 -08:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildExtendedReports(
|
|
|
|
|
const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildBYE(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildFIR(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildSLI(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildRPSI(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<rtcp::RtcpPacket> BuildNACK(const RtcpContext& context)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
const bool audio_;
|
|
|
|
|
Clock* const clock_;
|
2015-12-15 00:30:07 -08:00
|
|
|
Random random_ GUARDED_BY(critical_section_rtcp_sender_);
|
2015-12-10 02:39:40 -08:00
|
|
|
RtcpMode method_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-01-21 05:42:04 -08:00
|
|
|
RtcEventLog* const event_log_;
|
2015-12-10 02:39:40 -08:00
|
|
|
Transport* const transport_;
|
|
|
|
|
|
2016-03-22 11:14:09 -07:00
|
|
|
rtc::CriticalSection critical_section_rtcp_sender_;
|
2015-12-10 02:39:40 -08:00
|
|
|
bool using_nack_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
bool sending_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
bool remb_enabled_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
int64_t next_time_to_send_rtcp_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-08-18 02:01:49 -07:00
|
|
|
uint32_t timestamp_offset_ GUARDED_BY(critical_section_rtcp_sender_);
|
2015-12-10 02:39:40 -08:00
|
|
|
uint32_t last_rtp_timestamp_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
int64_t last_frame_capture_time_ms_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
uint32_t ssrc_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
// SSRC that we receive on our RTP channel
|
|
|
|
|
uint32_t remote_ssrc_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
std::string cname_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
ReceiveStatistics* receive_statistics_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
std::map<uint32_t, rtcp::ReportBlock> report_blocks_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
std::map<uint32_t, std::string> csrc_cnames_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
// send CSRCs
|
|
|
|
|
std::vector<uint32_t> csrcs_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
// Full intra request
|
|
|
|
|
uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
// REMB
|
|
|
|
|
uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-05-09 10:59:50 -07:00
|
|
|
std::vector<rtcp::TmmbItem> tmmbn_to_send_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
2016-08-18 06:17:42 -07:00
|
|
|
uint32_t tmmbr_send_bps_ GUARDED_BY(critical_section_rtcp_sender_);
|
2015-12-10 02:39:40 -08:00
|
|
|
uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_);
|
2016-03-30 11:11:51 -07:00
|
|
|
size_t max_payload_length_;
|
2015-12-10 02:39:40 -08:00
|
|
|
|
|
|
|
|
// APP
|
|
|
|
|
uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_);
|
2016-03-22 11:14:09 -07:00
|
|
|
std::unique_ptr<uint8_t[]> app_data_
|
2015-12-10 02:39:40 -08:00
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
// True if sending of XR Receiver reference time report is enabled.
|
|
|
|
|
bool xr_send_receiver_reference_time_enabled_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
// XR VoIP metric
|
2016-12-01 05:18:09 -08:00
|
|
|
rtc::Optional<RTCPVoIPMetric> xr_voip_metric_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
2015-12-10 02:39:40 -08:00
|
|
|
|
|
|
|
|
RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
|
|
|
|
|
RtcpPacketTypeCounter packet_type_counter_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
RTCPUtility::NackStats nack_stats_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-12-01 05:18:09 -08:00
|
|
|
rtc::Optional<BitrateAllocation> video_bitrate_allocation_
|
|
|
|
|
GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
|
|
|
|
void SetFlag(uint32_t type, bool is_volatile)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
void SetFlags(const std::set<RTCPPacketType>& types, bool is_volatile)
|
|
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-12-01 05:18:09 -08:00
|
|
|
bool IsFlagPresent(uint32_t type) const
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
2016-12-01 05:18:09 -08:00
|
|
|
bool ConsumeFlag(uint32_t type, bool forced = false)
|
2015-12-10 02:39:40 -08:00
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
bool AllVolatileFlagsConsumed() const
|
|
|
|
|
EXCLUSIVE_LOCKS_REQUIRED(critical_section_rtcp_sender_);
|
|
|
|
|
struct ReportFlag {
|
2016-12-01 05:18:09 -08:00
|
|
|
ReportFlag(uint32_t type, bool is_volatile)
|
2015-12-10 02:39:40 -08:00
|
|
|
: type(type), is_volatile(is_volatile) {}
|
|
|
|
|
bool operator<(const ReportFlag& flag) const { return type < flag.type; }
|
|
|
|
|
bool operator==(const ReportFlag& flag) const { return type == flag.type; }
|
2016-12-01 05:18:09 -08:00
|
|
|
const uint32_t type;
|
2015-12-10 02:39:40 -08:00
|
|
|
const bool is_volatile;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::set<ReportFlag> report_flags_ GUARDED_BY(critical_section_rtcp_sender_);
|
|
|
|
|
|
2016-03-22 11:14:09 -07:00
|
|
|
typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)(
|
2015-12-10 02:39:40 -08:00
|
|
|
const RtcpContext&);
|
2016-12-01 05:18:09 -08:00
|
|
|
// Map from RTCPPacketType to builder.
|
|
|
|
|
std::map<uint32_t, BuilderFunc> builders_;
|
2016-01-21 05:42:04 -08:00
|
|
|
|
|
|
|
|
RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender);
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
2013-07-03 15:12:26 +00:00
|
|
|
} // namespace webrtc
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2015-12-10 02:39:40 -08:00
|
|
|
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
|