blob: 5d1144804145a5b56f924af782d92dee8a067376 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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 WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_H_
12#define WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_H_
13
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +000014#include <vector>
15
turaj@webrtc.orgb7edd062013-03-12 22:27:27 +000016#include "webrtc/modules/interface/module.h"
17#include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
niklase@google.com470e71d2011-07-07 08:21:25 +000018
19namespace webrtc {
pwestin@webrtc.org571a1c02012-11-13 21:12:39 +000020// Forward declarations.
21class PacedSender;
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000022class RemoteBitrateEstimator;
23class RemoteBitrateObserver;
niklase@google.com470e71d2011-07-07 08:21:25 +000024class Transport;
25
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000026class RtpRtcp : public Module {
27 public:
28 struct Configuration {
phoglund@webrtc.orga22a9bd2013-01-14 10:01:55 +000029 Configuration();
30
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000031 /* id - Unique identifier of this RTP/RTCP module object
32 * audio - True for a audio version of the RTP/RTCP module
33 * object false will create a video version
34 * clock - The clock to use to read time. If NULL object
35 * will be using the system clock.
36 * incoming_data - Callback object that will receive the incoming
phoglund@webrtc.orga22a9bd2013-01-14 10:01:55 +000037 * data. May not be NULL; default callback will do
38 * nothing.
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000039 * incoming_messages - Callback object that will receive the incoming
phoglund@webrtc.orga22a9bd2013-01-14 10:01:55 +000040 * RTP messages. May not be NULL; default callback
41 * will do nothing.
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000042 * outgoing_transport - Transport object that will be called when packets
43 * are ready to be sent out on the network
44 * rtcp_feedback - Callback object that will receive the incoming
mflodman@webrtc.org7c894b72012-11-26 12:40:15 +000045 * RTCP messages.
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000046 * intra_frame_callback - Called when the receiver request a intra frame.
47 * bandwidth_callback - Called when we receive a changed estimate from
48 * the receiver of out stream.
phoglund@webrtc.orga22a9bd2013-01-14 10:01:55 +000049 * audio_messages - Telehone events. May not be NULL; default callback
50 * will do nothing.
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000051 * remote_bitrate_estimator - Estimates the bandwidth available for a set of
52 * streams from the same client.
pwestin@webrtc.org571a1c02012-11-13 21:12:39 +000053 * paced_sender - Spread any bursts of packets into smaller
54 * bursts to minimize packet loss.
niklase@google.com470e71d2011-07-07 08:21:25 +000055 */
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000056 int32_t id;
57 bool audio;
stefan@webrtc.org20ed36d2013-01-17 14:01:20 +000058 Clock* clock;
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000059 RtpRtcp* default_module;
60 RtpData* incoming_data;
61 RtpFeedback* incoming_messages;
62 Transport* outgoing_transport;
63 RtcpFeedback* rtcp_feedback;
64 RtcpIntraFrameObserver* intra_frame_callback;
65 RtcpBandwidthObserver* bandwidth_callback;
mflodman@webrtc.org7c894b72012-11-26 12:40:15 +000066 RtcpRttObserver* rtt_observer;
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000067 RtpAudioFeedback* audio_messages;
stefan@webrtc.org9354cc92012-06-07 08:10:14 +000068 RemoteBitrateEstimator* remote_bitrate_estimator;
pwestin@webrtc.org571a1c02012-11-13 21:12:39 +000069 PacedSender* paced_sender;
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000070 };
71 /*
72 * Create a RTP/RTCP module object using the system clock.
73 *
74 * configuration - Configuration of the RTP/RTCP module.
75 */
76 static RtpRtcp* CreateRtpRtcp(const RtpRtcp::Configuration& configuration);
niklase@google.com470e71d2011-07-07 08:21:25 +000077
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +000078 /**************************************************************************
79 *
80 * Receiver functions
81 *
82 ***************************************************************************/
niklase@google.com470e71d2011-07-07 08:21:25 +000083
84 /*
85 * configure a RTP packet timeout value
86 *
87 * RTPtimeoutMS - time in milliseconds after last received RTP packet
88 * RTCPtimeoutMS - time in milliseconds after last received RTCP packet
89 *
90 * return -1 on failure else 0
91 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +000092 virtual int32_t SetPacketTimeout(
93 const uint32_t RTPtimeoutMS,
94 const uint32_t RTCPtimeoutMS) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +000095
96 /*
97 * Set periodic dead or alive notification
98 *
99 * enable - turn periodic dead or alive notification on/off
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000100 * sampleTimeSeconds - sample interval in seconds for dead or alive
101 * notifications
niklase@google.com470e71d2011-07-07 08:21:25 +0000102 *
103 * return -1 on failure else 0
104 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000105 virtual int32_t SetPeriodicDeadOrAliveStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000106 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000107 const uint8_t sampleTimeSeconds) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000108
109 /*
110 * Get periodic dead or alive notification status
111 *
112 * enable - periodic dead or alive notification on/off
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000113 * sampleTimeSeconds - sample interval in seconds for dead or alive
114 * notifications
niklase@google.com470e71d2011-07-07 08:21:25 +0000115 *
116 * return -1 on failure else 0
117 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000118 virtual int32_t PeriodicDeadOrAliveStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000119 bool& enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000120 uint8_t& sampleTimeSeconds) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000121
122 /*
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000123 * set voice codec name and payload type
niklase@google.com470e71d2011-07-07 08:21:25 +0000124 *
125 * return -1 on failure else 0
126 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000127 virtual int32_t RegisterReceivePayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000128 const CodecInst& voiceCodec) = 0;
129
130 /*
131 * set video codec name and payload type
132 *
133 * return -1 on failure else 0
134 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000135 virtual int32_t RegisterReceivePayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000136 const VideoCodec& videoCodec) = 0;
137
138 /*
139 * get payload type for a voice codec
140 *
141 * return -1 on failure else 0
142 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000143 virtual int32_t ReceivePayloadType(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000144 const CodecInst& voiceCodec,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000145 int8_t* plType) = 0;
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000146
147 /*
148 * get payload type for a video codec
149 *
150 * return -1 on failure else 0
151 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000152 virtual int32_t ReceivePayloadType(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000153 const VideoCodec& videoCodec,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000154 int8_t* plType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000155
156 /*
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000157 * Remove a registered payload type from list of accepted payloads
niklase@google.com470e71d2011-07-07 08:21:25 +0000158 *
159 * payloadType - payload type of codec
160 *
161 * return -1 on failure else 0
162 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000163 virtual int32_t DeRegisterReceivePayload(
164 const int8_t payloadType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000165
166 /*
167 * Get last received remote timestamp
168 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000169 virtual uint32_t RemoteTimestamp() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000170
171 /*
stefan@webrtc.org7c3523c2012-09-11 07:00:42 +0000172 * Get the local time of the last received remote timestamp
173 */
174 virtual int64_t LocalTimeOfRemoteTimeStamp() const = 0;
175
176 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000177 * Get the current estimated remote timestamp
178 *
179 * timestamp - estimated timestamp
180 *
181 * return -1 on failure else 0
182 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000183 virtual int32_t EstimatedRemoteTimeStamp(
184 uint32_t& timestamp) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000185
186 /*
187 * Get incoming SSRC
188 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000189 virtual uint32_t RemoteSSRC() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000190
191 /*
192 * Get remote CSRC
193 *
194 * arrOfCSRC - array that will receive the CSRCs
195 *
196 * return -1 on failure else the number of valid entries in the list
197 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000198 virtual int32_t RemoteCSRCs(
199 uint32_t arrOfCSRC[kRtpCsrcSize]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000200
201 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000202 * get the currently configured SSRC filter
203 *
204 * allowedSSRC - SSRC that will be allowed through
205 *
206 * return -1 on failure else 0
207 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000208 virtual int32_t SSRCFilter(uint32_t& allowedSSRC) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000209
210 /*
211 * set a SSRC to be used as a filter for incoming RTP streams
212 *
213 * allowedSSRC - SSRC that will be allowed through
214 *
215 * return -1 on failure else 0
216 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000217 virtual int32_t SetSSRCFilter(const bool enable,
218 const uint32_t allowedSSRC) = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000219
220 /*
221 * Turn on/off receiving RTX (RFC 4588) on a specific SSRC.
222 */
mflodman@webrtc.org9f5ebb52013-04-12 14:55:46 +0000223 virtual int32_t SetRTXReceiveStatus(bool enable, uint32_t SSRC) = 0;
224
225 // Sets the payload type to expected for received RTX packets. Note
226 // that this doesn't enable RTX, only the payload type is set.
227 virtual void SetRtxReceivePayloadType(int payload_type) = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000228
229 /*
230 * Get status of receiving RTX (RFC 4588) on a specific SSRC.
231 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000232 virtual int32_t RTXReceiveStatus(bool* enable,
mflodman@webrtc.org9f5ebb52013-04-12 14:55:46 +0000233 uint32_t* SSRC,
234 int* payloadType) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000235
236 /*
237 * called by the network module when we receive a packet
238 *
239 * incomingPacket - incoming packet buffer
240 * packetLength - length of incoming buffer
stefan@webrtc.orga5cb98c2013-05-29 12:12:51 +0000241 * parsed_rtp_header - the parsed RTP header
niklase@google.com470e71d2011-07-07 08:21:25 +0000242 *
243 * return -1 on failure else 0
244 */
stefan@webrtc.orga5cb98c2013-05-29 12:12:51 +0000245 virtual int32_t IncomingRtpPacket(const uint8_t* incomingPacket,
246 const uint16_t packetLength,
247 const RTPHeader& parsed_rtp_header) = 0;
248
249 virtual int32_t IncomingRtcpPacket(const uint8_t* incoming_packet,
250 uint16_t incoming_packet_length) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000251
niklase@google.com470e71d2011-07-07 08:21:25 +0000252 /**************************************************************************
253 *
254 * Sender
255 *
256 ***************************************************************************/
257
258 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000259 * set MTU
260 *
261 * size - Max transfer unit in bytes, default is 1500
262 *
263 * return -1 on failure else 0
264 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000265 virtual int32_t SetMaxTransferUnit(const uint16_t size) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000266
267 /*
268 * set transtport overhead
269 * default is IPv4 and UDP with no encryption
270 *
271 * TCP - true for TCP false UDP
272 * IPv6 - true for IP version 6 false for version 4
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000273 * authenticationOverhead - number of bytes to leave for an
274 * authentication header
niklase@google.com470e71d2011-07-07 08:21:25 +0000275 *
276 * return -1 on failure else 0
277 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000278 virtual int32_t SetTransportOverhead(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000279 const bool TCP,
280 const bool IPV6,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000281 const uint8_t authenticationOverhead = 0) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000282
283 /*
284 * Get max payload length
285 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000286 * A combination of the configuration MaxTransferUnit and
287 * TransportOverhead.
niklase@google.com470e71d2011-07-07 08:21:25 +0000288 * Does not account FEC/ULP/RED overhead if FEC is enabled.
289 * Does not account for RTP headers
290 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000291 virtual uint16_t MaxPayloadLength() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000292
293 /*
294 * Get max data payload length
295 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000296 * A combination of the configuration MaxTransferUnit, headers and
297 * TransportOverhead.
niklase@google.com470e71d2011-07-07 08:21:25 +0000298 * Takes into account FEC/ULP/RED overhead if FEC is enabled.
299 * Takes into account RTP headers
300 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000301 virtual uint16_t MaxDataPayloadLength() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000302
303 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000304 * set codec name and payload type
305 *
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000306 * return -1 on failure else 0
307 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000308 virtual int32_t RegisterSendPayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000309 const CodecInst& voiceCodec) = 0;
310
311 /*
312 * set codec name and payload type
niklase@google.com470e71d2011-07-07 08:21:25 +0000313 *
314 * return -1 on failure else 0
315 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000316 virtual int32_t RegisterSendPayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000317 const VideoCodec& videoCodec) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000318
319 /*
320 * Unregister a send payload
321 *
322 * payloadType - payload type of codec
323 *
324 * return -1 on failure else 0
325 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000326 virtual int32_t DeRegisterSendPayload(
327 const int8_t payloadType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000328
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000329 /*
330 * (De)register RTP header extension type and id.
331 *
332 * return -1 on failure else 0
333 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000334 virtual int32_t RegisterSendRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000335 const RTPExtensionType type,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000336 const uint8_t id) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000337
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000338 virtual int32_t DeregisterSendRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000339 const RTPExtensionType type) = 0;
340
niklase@google.com470e71d2011-07-07 08:21:25 +0000341 /*
342 * get start timestamp
343 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000344 virtual uint32_t StartTimestamp() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000345
346 /*
347 * configure start timestamp, default is a random number
348 *
349 * timestamp - start timestamp
350 *
351 * return -1 on failure else 0
352 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000353 virtual int32_t SetStartTimestamp(
354 const uint32_t timestamp) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000355
356 /*
357 * Get SequenceNumber
358 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000359 virtual uint16_t SequenceNumber() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000360
361 /*
362 * Set SequenceNumber, default is a random number
363 *
364 * return -1 on failure else 0
365 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000366 virtual int32_t SetSequenceNumber(const uint16_t seq) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000367
368 /*
369 * Get SSRC
370 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000371 virtual uint32_t SSRC() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000372
373 /*
374 * configure SSRC, default is a random number
375 *
376 * return -1 on failure else 0
377 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000378 virtual int32_t SetSSRC(const uint32_t ssrc) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000379
380 /*
381 * Get CSRC
382 *
383 * arrOfCSRC - array of CSRCs
384 *
385 * return -1 on failure else number of valid entries in the array
386 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000387 virtual int32_t CSRCs(
388 uint32_t arrOfCSRC[kRtpCsrcSize]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000389
390 /*
391 * Set CSRC
392 *
393 * arrOfCSRC - array of CSRCs
394 * arrLength - number of valid entries in the array
395 *
396 * return -1 on failure else 0
397 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000398 virtual int32_t SetCSRCs(
399 const uint32_t arrOfCSRC[kRtpCsrcSize],
400 const uint8_t arrLength) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000401
402 /*
403 * includes CSRCs in RTP header if enabled
404 *
405 * include CSRC - on/off
406 *
407 * default:on
408 *
409 * return -1 on failure else 0
410 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000411 virtual int32_t SetCSRCStatus(const bool include) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000412
413 /*
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000414 * Turn on/off sending RTX (RFC 4588) on a specific SSRC.
415 */
mflodman@webrtc.org9f5ebb52013-04-12 14:55:46 +0000416 virtual int32_t SetRTXSendStatus(RtxMode mode, bool set_ssrc,
417 uint32_t ssrc) = 0;
418
419 // Sets the payload type to use when sending RTX packets. Note that this
420 // doesn't enable RTX, only the payload type is set.
421 virtual void SetRtxSendPayloadType(int payload_type) = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000422
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000423 /*
424 * Get status of sending RTX (RFC 4588) on a specific SSRC.
425 */
mflodman@webrtc.org9f5ebb52013-04-12 14:55:46 +0000426 virtual int32_t RTXSendStatus(RtxMode* mode, uint32_t* ssrc,
427 int* payloadType) const = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000428
429 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000430 * sends kRtcpByeCode when going from true to false
431 *
432 * sending - on/off
433 *
434 * return -1 on failure else 0
435 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000436 virtual int32_t SetSendingStatus(const bool sending) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000437
438 /*
439 * get send status
440 */
441 virtual bool Sending() const = 0;
442
443 /*
444 * Starts/Stops media packets, on by default
445 *
446 * sending - on/off
447 *
448 * return -1 on failure else 0
449 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000450 virtual int32_t SetSendingMediaStatus(const bool sending) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000451
452 /*
453 * get send status
454 */
455 virtual bool SendingMedia() const = 0;
456
457 /*
458 * get sent bitrate in Kbit/s
459 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000460 virtual void BitrateSent(uint32_t* totalRate,
461 uint32_t* videoRate,
462 uint32_t* fecRate,
463 uint32_t* nackRate) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000464
465 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000466 * Used by the codec module to deliver a video or audio frame for
467 * packetization.
niklase@google.com470e71d2011-07-07 08:21:25 +0000468 *
469 * frameType - type of frame to send
470 * payloadType - payload type of frame to send
471 * timestamp - timestamp of frame to send
472 * payloadData - payload buffer of frame to send
473 * payloadSize - size of payload buffer to send
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000474 * fragmentation - fragmentation offset data for fragmented frames such
475 * as layers or RED
niklase@google.com470e71d2011-07-07 08:21:25 +0000476 *
477 * return -1 on failure else 0
478 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000479 virtual int32_t SendOutgoingData(
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000480 const FrameType frameType,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000481 const int8_t payloadType,
482 const uint32_t timeStamp,
stefan@webrtc.orgddfdfed2012-07-03 13:21:22 +0000483 int64_t capture_time_ms,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000484 const uint8_t* payloadData,
485 const uint32_t payloadSize,
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000486 const RTPFragmentationHeader* fragmentation = NULL,
487 const RTPVideoHeader* rtpVideoHdr = NULL) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000488
hclam@chromium.org2e402ce2013-06-20 20:18:31 +0000489 virtual bool TimeToSendPacket(uint32_t ssrc, uint16_t sequence_number,
pwestin@webrtc.org571a1c02012-11-13 21:12:39 +0000490 int64_t capture_time_ms) = 0;
491
stefan@webrtc.org508a84b2013-06-17 12:53:37 +0000492 virtual int TimeToSendPadding(int bytes) = 0;
493
niklase@google.com470e71d2011-07-07 08:21:25 +0000494 /**************************************************************************
495 *
496 * RTCP
497 *
498 ***************************************************************************/
499
500 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000501 * Get RTCP status
502 */
503 virtual RTCPMethod RTCP() const = 0;
504
505 /*
506 * configure RTCP status i.e on(compound or non- compound)/off
507 *
508 * method - RTCP method to use
509 *
510 * return -1 on failure else 0
511 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000512 virtual int32_t SetRTCPStatus(const RTCPMethod method) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000513
514 /*
515 * Set RTCP CName (i.e unique identifier)
516 *
517 * return -1 on failure else 0
518 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000519 virtual int32_t SetCNAME(const char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000520
521 /*
522 * Get RTCP CName (i.e unique identifier)
523 *
524 * return -1 on failure else 0
525 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000526 virtual int32_t CNAME(char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000527
528 /*
529 * Get remote CName
530 *
531 * return -1 on failure else 0
532 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000533 virtual int32_t RemoteCNAME(
534 const uint32_t remoteSSRC,
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +0000535 char cName[RTCP_CNAME_SIZE]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000536
537 /*
538 * Get remote NTP
539 *
540 * return -1 on failure else 0
541 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000542 virtual int32_t RemoteNTP(
543 uint32_t *ReceivedNTPsecs,
544 uint32_t *ReceivedNTPfrac,
545 uint32_t *RTCPArrivalTimeSecs,
546 uint32_t *RTCPArrivalTimeFrac,
547 uint32_t *rtcp_timestamp) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000548
549 /*
550 * AddMixedCNAME
551 *
552 * return -1 on failure else 0
553 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000554 virtual int32_t AddMixedCNAME(
555 const uint32_t SSRC,
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +0000556 const char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000557
558 /*
559 * RemoveMixedCNAME
560 *
561 * return -1 on failure else 0
562 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000563 virtual int32_t RemoveMixedCNAME(const uint32_t SSRC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000564
565 /*
566 * Get RoundTripTime
567 *
568 * return -1 on failure else 0
569 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000570 virtual int32_t RTT(const uint32_t remoteSSRC,
571 uint16_t* RTT,
572 uint16_t* avgRTT,
573 uint16_t* minRTT,
574 uint16_t* maxRTT) const = 0 ;
niklase@google.com470e71d2011-07-07 08:21:25 +0000575
576 /*
577 * Reset RoundTripTime statistics
578 *
579 * return -1 on failure else 0
580 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000581 virtual int32_t ResetRTT(const uint32_t remoteSSRC)= 0 ;
niklase@google.com470e71d2011-07-07 08:21:25 +0000582
583 /*
mflodman@webrtc.org7c894b72012-11-26 12:40:15 +0000584 * Sets the estimated RTT, to be used for receive only modules without
585 * possibility of calculating its own RTT.
586 */
587 virtual void SetRtt(uint32_t rtt) = 0;
588
589 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000590 * Force a send of a RTCP packet
591 * normal SR and RR are triggered via the process function
592 *
593 * return -1 on failure else 0
594 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000595 virtual int32_t SendRTCP(
596 uint32_t rtcpPacketType = kRtcpReport) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000597
598 /*
599 * Good state of RTP receiver inform sender
600 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000601 virtual int32_t SendRTCPReferencePictureSelection(
602 const uint64_t pictureID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000603
604 /*
605 * Send a RTCP Slice Loss Indication (SLI)
606 * 6 least significant bits of pictureID
607 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000608 virtual int32_t SendRTCPSliceLossIndication(
609 const uint8_t pictureID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000610
611 /*
612 * Reset RTP statistics
613 *
614 * return -1 on failure else 0
615 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000616 virtual int32_t ResetStatisticsRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000617
618 /*
619 * statistics of our localy created statistics of the received RTP stream
620 *
621 * return -1 on failure else 0
622 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000623 virtual int32_t StatisticsRTP(
624 uint8_t* fraction_lost, // scale 0 to 255
625 uint32_t* cum_lost, // number of lost packets
626 uint32_t* ext_max, // highest sequence number received
627 uint32_t* jitter,
628 uint32_t* max_jitter = NULL) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000629
630 /*
631 * Reset RTP data counters for the receiving side
632 *
633 * return -1 on failure else 0
634 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000635 virtual int32_t ResetReceiveDataCountersRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000636
637 /*
638 * Reset RTP data counters for the sending side
639 *
640 * return -1 on failure else 0
641 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000642 virtual int32_t ResetSendDataCountersRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000643
644 /*
645 * statistics of the amount of data sent and received
646 *
647 * return -1 on failure else 0
648 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000649 virtual int32_t DataCountersRTP(
650 uint32_t* bytesSent,
651 uint32_t* packetsSent,
652 uint32_t* bytesReceived,
653 uint32_t* packetsReceived) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000654 /*
655 * Get received RTCP sender info
656 *
657 * return -1 on failure else 0
658 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000659 virtual int32_t RemoteRTCPStat(RTCPSenderInfo* senderInfo) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000660
661 /*
662 * Get received RTCP report block
663 *
664 * return -1 on failure else 0
665 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000666 virtual int32_t RemoteRTCPStat(
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +0000667 std::vector<RTCPReportBlock>* receiveBlocks) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000668 /*
669 * Set received RTCP report block
670 *
671 * return -1 on failure else 0
672 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000673 virtual int32_t AddRTCPReportBlock(
674 const uint32_t SSRC,
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +0000675 const RTCPReportBlock* receiveBlock) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000676
677 /*
678 * RemoveRTCPReportBlock
679 *
680 * return -1 on failure else 0
681 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000682 virtual int32_t RemoveRTCPReportBlock(const uint32_t SSRC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000683
684 /*
685 * (APP) Application specific data
686 *
687 * return -1 on failure else 0
688 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000689 virtual int32_t SetRTCPApplicationSpecificData(
690 const uint8_t subType,
691 const uint32_t name,
692 const uint8_t* data,
693 const uint16_t length) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000694 /*
695 * (XR) VOIP metric
696 *
697 * return -1 on failure else 0
698 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000699 virtual int32_t SetRTCPVoIPMetrics(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000700 const RTCPVoIPMetric* VoIPMetric) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000701
702 /*
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000703 * (REMB) Receiver Estimated Max Bitrate
704 */
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000705 virtual bool REMB() const = 0;
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000706
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000707 virtual int32_t SetREMBStatus(const bool enable) = 0;
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000708
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000709 virtual int32_t SetREMBData(const uint32_t bitrate,
710 const uint8_t numberOfSSRC,
711 const uint32_t* SSRC) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000712
713 /*
714 * (IJ) Extended jitter report.
715 */
716 virtual bool IJ() const = 0;
717
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000718 virtual int32_t SetIJStatus(const bool enable) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000719
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000720 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000721 * (TMMBR) Temporary Max Media Bit Rate
722 */
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000723 virtual bool TMMBR() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000724
725 /*
726 *
727 * return -1 on failure else 0
728 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000729 virtual int32_t SetTMMBRStatus(const bool enable) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000730
731 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000732 * (NACK)
733 */
734 virtual NACKMethod NACK() const = 0;
735
736 /*
737 * Turn negative acknowledgement requests on/off
stefan@webrtc.orgbecf9c82013-02-01 15:09:57 +0000738 * |max_reordering_threshold| should be set to how much a retransmitted
739 * packet can be expected to be reordered (in sequence numbers) compared to
740 * a packet which has not been retransmitted.
niklase@google.com470e71d2011-07-07 08:21:25 +0000741 *
742 * return -1 on failure else 0
743 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000744 virtual int32_t SetNACKStatus(const NACKMethod method,
745 int max_reordering_threshold) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000746
747 /*
stefan@webrtc.org6a4bef42011-12-22 12:52:41 +0000748 * TODO(holmer): Propagate this API to VideoEngine.
749 * Returns the currently configured selective retransmission settings.
750 */
751 virtual int SelectiveRetransmissions() const = 0;
752
753 /*
754 * TODO(holmer): Propagate this API to VideoEngine.
755 * Sets the selective retransmission settings, which will decide which
756 * packets will be retransmitted if NACKed. Settings are constructed by
757 * combining the constants in enum RetransmissionMode with bitwise OR.
758 * All packets are retransmitted if kRetransmitAllPackets is set, while no
759 * packets are retransmitted if kRetransmitOff is set.
760 * By default all packets except FEC packets are retransmitted. For VP8
761 * with temporal scalability only base layer packets are retransmitted.
762 *
763 * Returns -1 on failure, otherwise 0.
764 */
765 virtual int SetSelectiveRetransmissions(uint8_t settings) = 0;
766
767 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000768 * Send a Negative acknowledgement packet
769 *
770 * return -1 on failure else 0
771 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000772 virtual int32_t SendNACK(const uint16_t* nackList,
773 const uint16_t size) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000774
775 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000776 * Store the sent packets, needed to answer to a Negative acknowledgement
777 * requests
niklase@google.com470e71d2011-07-07 08:21:25 +0000778 *
779 * return -1 on failure else 0
780 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000781 virtual int32_t SetStorePacketsStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000782 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000783 const uint16_t numberToStore) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000784
785 /**************************************************************************
786 *
787 * Audio
788 *
789 ***************************************************************************/
790
791 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000792 * set audio packet size, used to determine when it's time to send a DTMF
793 * packet in silence (CNG)
niklase@google.com470e71d2011-07-07 08:21:25 +0000794 *
795 * return -1 on failure else 0
796 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000797 virtual int32_t SetAudioPacketSize(
798 const uint16_t packetSizeSamples) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000799
800 /*
turaj@webrtc.orgb7edd062013-03-12 22:27:27 +0000801 * Forward DTMF to decoder for playout.
niklase@google.com470e71d2011-07-07 08:21:25 +0000802 *
803 * return -1 on failure else 0
804 */
turaj@webrtc.orgb7edd062013-03-12 22:27:27 +0000805 virtual int SetTelephoneEventForwardToDecoder(bool forwardToDecoder) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000806
807 /*
808 * Returns true if received DTMF events are forwarded to the decoder using
809 * the OnPlayTelephoneEvent callback.
810 */
811 virtual bool TelephoneEventForwardToDecoder() const = 0;
812
813 /*
814 * SendTelephoneEventActive
815 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000816 * return true if we currently send a telephone event and 100 ms after an
817 * event is sent used to prevent the telephone event tone to be recorded
818 * by the microphone and send inband just after the tone has ended.
niklase@google.com470e71d2011-07-07 08:21:25 +0000819 */
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000820 virtual bool SendTelephoneEventActive(
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000821 int8_t& telephoneEvent) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000822
823 /*
824 * Send a TelephoneEvent tone using RFC 2833 (4733)
825 *
826 * return -1 on failure else 0
827 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000828 virtual int32_t SendTelephoneEventOutband(
829 const uint8_t key,
830 const uint16_t time_ms,
831 const uint8_t level) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000832
833 /*
834 * Set payload type for Redundant Audio Data RFC 2198
835 *
836 * return -1 on failure else 0
837 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000838 virtual int32_t SetSendREDPayloadType(
839 const int8_t payloadType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000840
841 /*
842 * Get payload type for Redundant Audio Data RFC 2198
843 *
844 * return -1 on failure else 0
845 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000846 virtual int32_t SendREDPayloadType(
847 int8_t& payloadType) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000848
849 /*
850 * Set status and ID for header-extension-for-audio-level-indication.
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000851 * See http://tools.ietf.org/html/rfc6464 for more details.
niklase@google.com470e71d2011-07-07 08:21:25 +0000852 *
853 * return -1 on failure else 0
854 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000855 virtual int32_t SetRTPAudioLevelIndicationStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000856 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000857 const uint8_t ID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000858
859 /*
860 * Get status and ID for header-extension-for-audio-level-indication.
861 *
862 * return -1 on failure else 0
863 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000864 virtual int32_t GetRTPAudioLevelIndicationStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000865 bool& enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000866 uint8_t& ID) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000867
868 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000869 * Store the audio level in dBov for header-extension-for-audio-level-
870 * indication.
niklase@google.com470e71d2011-07-07 08:21:25 +0000871 * This API shall be called before transmision of an RTP packet to ensure
872 * that the |level| part of the extended RTP header is updated.
873 *
874 * return -1 on failure else 0.
875 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000876 virtual int32_t SetAudioLevel(const uint8_t level_dBov) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000877
878 /**************************************************************************
879 *
880 * Video
881 *
882 ***************************************************************************/
883
884 /*
stefan@webrtc.org7da34592013-04-09 14:56:29 +0000885 * Set the estimated camera delay in MS
886 *
887 * return -1 on failure else 0
888 */
889 virtual int32_t SetCameraDelay(const int32_t delayMS) = 0;
890
891 /*
pwestin@webrtc.org49888ce2012-04-27 05:25:53 +0000892 * Set the target send bitrate
niklase@google.com470e71d2011-07-07 08:21:25 +0000893 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000894 virtual void SetTargetSendBitrate(const uint32_t bitrate) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000895
896 /*
897 * Turn on/off generic FEC
898 *
899 * return -1 on failure else 0
900 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000901 virtual int32_t SetGenericFECStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000902 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000903 const uint8_t payloadTypeRED,
904 const uint8_t payloadTypeFEC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000905
906 /*
907 * Get generic FEC setting
908 *
909 * return -1 on failure else 0
910 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000911 virtual int32_t GenericFECStatus(bool& enable,
912 uint8_t& payloadTypeRED,
913 uint8_t& payloadTypeFEC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000914
marpan@google.com80c5d7a2011-07-15 21:32:40 +0000915
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000916 virtual int32_t SetFecParameters(
stefan@webrtc.orge0d6fa42012-03-20 22:10:56 +0000917 const FecProtectionParams* delta_params,
918 const FecProtectionParams* key_params) = 0;
marpan@google.com80c5d7a2011-07-15 21:32:40 +0000919
niklase@google.com470e71d2011-07-07 08:21:25 +0000920 /*
921 * Set method for requestion a new key frame
922 *
923 * return -1 on failure else 0
924 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000925 virtual int32_t SetKeyFrameRequestMethod(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000926 const KeyFrameRequestMethod method) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000927
928 /*
929 * send a request for a keyframe
930 *
931 * return -1 on failure else 0
932 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000933 virtual int32_t RequestKeyFrame() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000934};
935} // namespace webrtc
936#endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_H_