2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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.
11 #ifndef WEBRTC_VOICE_ENGINE_VOE_RTP_RTCP_IMPL_H
12 #define WEBRTC_VOICE_ENGINE_VOE_RTP_RTCP_IMPL_H
14 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h"
16 #include "webrtc/voice_engine/shared_data.h"
20 class VoERTP_RTCPImpl : public VoERTP_RTCP
24 virtual int SetRTCPStatus(int channel, bool enable);
26 virtual int GetRTCPStatus(int channel, bool& enabled);
28 virtual int SetRTCP_CNAME(int channel, const char cName[256]);
30 virtual int GetRemoteRTCP_CNAME(int channel, char cName[256]);
32 virtual int GetRemoteRTCPData(int channel,
33 unsigned int& NTPHigh,
35 unsigned int& timestamp,
36 unsigned int& playoutTimestamp,
37 unsigned int* jitter = NULL,
38 unsigned short* fractionLost = NULL);
41 virtual int SetLocalSSRC(int channel, unsigned int ssrc);
43 virtual int GetLocalSSRC(int channel, unsigned int& ssrc);
45 virtual int GetRemoteSSRC(int channel, unsigned int& ssrc);
47 // RTP Header Extension for Client-to-Mixer Audio Level Indication
48 virtual int SetSendAudioLevelIndicationStatus(int channel,
51 virtual int SetReceiveAudioLevelIndicationStatus(int channel,
55 // RTP Header Extension for Absolute Sender Time
56 virtual int SetSendAbsoluteSenderTimeStatus(int channel,
59 virtual int SetReceiveAbsoluteSenderTimeStatus(int channel,
64 virtual int GetRTPStatistics(int channel,
65 unsigned int& averageJitterMs,
66 unsigned int& maxJitterMs,
67 unsigned int& discardedPackets);
69 virtual int GetRTCPStatistics(int channel, CallStatistics& stats);
71 virtual int GetRemoteRTCPReportBlocks(
72 int channel, std::vector<ReportBlock>* report_blocks);
75 virtual int SetREDStatus(int channel,
77 int redPayloadtype = -1);
79 virtual int GetREDStatus(int channel, bool& enabled, int& redPayloadtype);
82 virtual int SetNACKStatus(int channel,
86 // Store RTP and RTCP packets and dump to file (compatible with rtpplay)
87 virtual int StartRTPDump(int channel,
88 const char fileNameUTF8[1024],
89 RTPDirections direction = kRtpIncoming);
91 virtual int StopRTPDump(int channel,
92 RTPDirections direction = kRtpIncoming);
94 virtual int RTPDumpIsActive(int channel,
95 RTPDirections direction = kRtpIncoming);
97 virtual int SetVideoEngineBWETarget(int channel, ViENetwork* vie_network,
100 VoERTP_RTCPImpl(voe::SharedData* shared);
101 virtual ~VoERTP_RTCPImpl();
104 voe::SharedData* _shared;
107 } // namespace webrtc
109 #endif // WEBRTC_VOICE_ENGINE_VOE_RTP_RTCP_IMPL_H