blob: 385520487c9f1c401db382a36fcedb06bb7bf290 [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
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000166 /*
167 * (De)register RTP header extension type and id.
168 *
169 * return -1 on failure else 0
170 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000171 virtual int32_t RegisterReceiveRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000172 const RTPExtensionType type,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000173 const uint8_t id) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000174
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000175 virtual int32_t DeregisterReceiveRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000176 const RTPExtensionType type) = 0;
177
niklase@google.com470e71d2011-07-07 08:21:25 +0000178 /*
179 * Get last received remote timestamp
180 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000181 virtual uint32_t RemoteTimestamp() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000182
183 /*
stefan@webrtc.org7c3523c2012-09-11 07:00:42 +0000184 * Get the local time of the last received remote timestamp
185 */
186 virtual int64_t LocalTimeOfRemoteTimeStamp() const = 0;
187
188 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000189 * Get the current estimated remote timestamp
190 *
191 * timestamp - estimated timestamp
192 *
193 * return -1 on failure else 0
194 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000195 virtual int32_t EstimatedRemoteTimeStamp(
196 uint32_t& timestamp) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000197
198 /*
199 * Get incoming SSRC
200 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000201 virtual uint32_t RemoteSSRC() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000202
203 /*
204 * Get remote CSRC
205 *
206 * arrOfCSRC - array that will receive the CSRCs
207 *
208 * return -1 on failure else the number of valid entries in the list
209 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000210 virtual int32_t RemoteCSRCs(
211 uint32_t arrOfCSRC[kRtpCsrcSize]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000212
213 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000214 * get the currently configured SSRC filter
215 *
216 * allowedSSRC - SSRC that will be allowed through
217 *
218 * return -1 on failure else 0
219 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000220 virtual int32_t SSRCFilter(uint32_t& allowedSSRC) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000221
222 /*
223 * set a SSRC to be used as a filter for incoming RTP streams
224 *
225 * allowedSSRC - SSRC that will be allowed through
226 *
227 * return -1 on failure else 0
228 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000229 virtual int32_t SetSSRCFilter(const bool enable,
230 const uint32_t allowedSSRC) = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000231
232 /*
233 * Turn on/off receiving RTX (RFC 4588) on a specific SSRC.
234 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000235 virtual int32_t SetRTXReceiveStatus(const bool enable,
236 const uint32_t SSRC) = 0;
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000237
238 /*
239 * Get status of receiving RTX (RFC 4588) on a specific SSRC.
240 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000241 virtual int32_t RTXReceiveStatus(bool* enable,
242 uint32_t* SSRC) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000243
244 /*
245 * called by the network module when we receive a packet
246 *
247 * incomingPacket - incoming packet buffer
248 * packetLength - length of incoming buffer
249 *
250 * return -1 on failure else 0
251 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000252 virtual int32_t IncomingPacket(const uint8_t* incomingPacket,
253 const uint16_t packetLength) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000254
niklase@google.com470e71d2011-07-07 08:21:25 +0000255 /**************************************************************************
256 *
257 * Sender
258 *
259 ***************************************************************************/
260
261 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000262 * set MTU
263 *
264 * size - Max transfer unit in bytes, default is 1500
265 *
266 * return -1 on failure else 0
267 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000268 virtual int32_t SetMaxTransferUnit(const uint16_t size) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000269
270 /*
271 * set transtport overhead
272 * default is IPv4 and UDP with no encryption
273 *
274 * TCP - true for TCP false UDP
275 * IPv6 - true for IP version 6 false for version 4
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000276 * authenticationOverhead - number of bytes to leave for an
277 * authentication header
niklase@google.com470e71d2011-07-07 08:21:25 +0000278 *
279 * return -1 on failure else 0
280 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000281 virtual int32_t SetTransportOverhead(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000282 const bool TCP,
283 const bool IPV6,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000284 const uint8_t authenticationOverhead = 0) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000285
286 /*
287 * Get max payload length
288 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000289 * A combination of the configuration MaxTransferUnit and
290 * TransportOverhead.
niklase@google.com470e71d2011-07-07 08:21:25 +0000291 * Does not account FEC/ULP/RED overhead if FEC is enabled.
292 * Does not account for RTP headers
293 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000294 virtual uint16_t MaxPayloadLength() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000295
296 /*
297 * Get max data payload length
298 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000299 * A combination of the configuration MaxTransferUnit, headers and
300 * TransportOverhead.
niklase@google.com470e71d2011-07-07 08:21:25 +0000301 * Takes into account FEC/ULP/RED overhead if FEC is enabled.
302 * Takes into account RTP headers
303 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000304 virtual uint16_t MaxDataPayloadLength() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000305
306 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000307 * set codec name and payload type
308 *
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000309 * return -1 on failure else 0
310 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000311 virtual int32_t RegisterSendPayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000312 const CodecInst& voiceCodec) = 0;
313
314 /*
315 * set codec name and payload type
niklase@google.com470e71d2011-07-07 08:21:25 +0000316 *
317 * return -1 on failure else 0
318 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000319 virtual int32_t RegisterSendPayload(
pwestin@webrtc.org1da1ce02011-10-13 15:19:55 +0000320 const VideoCodec& videoCodec) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000321
322 /*
323 * Unregister a send payload
324 *
325 * payloadType - payload type of codec
326 *
327 * return -1 on failure else 0
328 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000329 virtual int32_t DeRegisterSendPayload(
330 const int8_t payloadType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000331
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000332 /*
333 * (De)register RTP header extension type and id.
334 *
335 * return -1 on failure else 0
336 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000337 virtual int32_t RegisterSendRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000338 const RTPExtensionType type,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000339 const uint8_t id) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000340
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000341 virtual int32_t DeregisterSendRtpHeaderExtension(
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000342 const RTPExtensionType type) = 0;
343
niklase@google.com470e71d2011-07-07 08:21:25 +0000344 /*
345 * get start timestamp
346 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000347 virtual uint32_t StartTimestamp() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000348
349 /*
350 * configure start timestamp, default is a random number
351 *
352 * timestamp - start timestamp
353 *
354 * return -1 on failure else 0
355 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000356 virtual int32_t SetStartTimestamp(
357 const uint32_t timestamp) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000358
359 /*
360 * Get SequenceNumber
361 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000362 virtual uint16_t SequenceNumber() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000363
364 /*
365 * Set SequenceNumber, default is a random number
366 *
367 * return -1 on failure else 0
368 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000369 virtual int32_t SetSequenceNumber(const uint16_t seq) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000370
371 /*
372 * Get SSRC
373 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000374 virtual uint32_t SSRC() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000375
376 /*
377 * configure SSRC, default is a random number
378 *
379 * return -1 on failure else 0
380 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000381 virtual int32_t SetSSRC(const uint32_t ssrc) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000382
383 /*
384 * Get CSRC
385 *
386 * arrOfCSRC - array of CSRCs
387 *
388 * return -1 on failure else number of valid entries in the array
389 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000390 virtual int32_t CSRCs(
391 uint32_t arrOfCSRC[kRtpCsrcSize]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000392
393 /*
394 * Set CSRC
395 *
396 * arrOfCSRC - array of CSRCs
397 * arrLength - number of valid entries in the array
398 *
399 * return -1 on failure else 0
400 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000401 virtual int32_t SetCSRCs(
402 const uint32_t arrOfCSRC[kRtpCsrcSize],
403 const uint8_t arrLength) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000404
405 /*
406 * includes CSRCs in RTP header if enabled
407 *
408 * include CSRC - on/off
409 *
410 * default:on
411 *
412 * return -1 on failure else 0
413 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000414 virtual int32_t SetCSRCStatus(const bool include) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000415
416 /*
pwestin@webrtc.org8281e7d2012-01-10 14:09:18 +0000417 * Turn on/off sending RTX (RFC 4588) on a specific SSRC.
418 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000419 virtual int32_t SetRTXSendStatus(const RtxMode mode,
420 const bool setSSRC,
421 const uint32_t SSRC) = 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 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000426 virtual int32_t RTXSendStatus(RtxMode* mode,
427 uint32_t* SSRC) 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
pwestin@webrtc.org571a1c02012-11-13 21:12:39 +0000489 virtual void TimeToSendPacket(uint32_t ssrc, uint16_t sequence_number,
490 int64_t capture_time_ms) = 0;
491
niklase@google.com470e71d2011-07-07 08:21:25 +0000492 /**************************************************************************
493 *
494 * RTCP
495 *
496 ***************************************************************************/
497
498 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000499 * Get RTCP status
500 */
501 virtual RTCPMethod RTCP() const = 0;
502
503 /*
504 * configure RTCP status i.e on(compound or non- compound)/off
505 *
506 * method - RTCP method to use
507 *
508 * return -1 on failure else 0
509 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000510 virtual int32_t SetRTCPStatus(const RTCPMethod method) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000511
512 /*
513 * Set RTCP CName (i.e unique identifier)
514 *
515 * return -1 on failure else 0
516 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000517 virtual int32_t SetCNAME(const char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000518
519 /*
520 * Get RTCP CName (i.e unique identifier)
521 *
522 * return -1 on failure else 0
523 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000524 virtual int32_t CNAME(char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000525
526 /*
527 * Get remote CName
528 *
529 * return -1 on failure else 0
530 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000531 virtual int32_t RemoteCNAME(
532 const uint32_t remoteSSRC,
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +0000533 char cName[RTCP_CNAME_SIZE]) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000534
535 /*
536 * Get remote NTP
537 *
538 * return -1 on failure else 0
539 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000540 virtual int32_t RemoteNTP(
541 uint32_t *ReceivedNTPsecs,
542 uint32_t *ReceivedNTPfrac,
543 uint32_t *RTCPArrivalTimeSecs,
544 uint32_t *RTCPArrivalTimeFrac,
545 uint32_t *rtcp_timestamp) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000546
547 /*
548 * AddMixedCNAME
549 *
550 * return -1 on failure else 0
551 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000552 virtual int32_t AddMixedCNAME(
553 const uint32_t SSRC,
pwestin@webrtc.orgf6bb77a2012-01-24 17:16:59 +0000554 const char cName[RTCP_CNAME_SIZE]) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000555
556 /*
557 * RemoveMixedCNAME
558 *
559 * return -1 on failure else 0
560 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000561 virtual int32_t RemoveMixedCNAME(const uint32_t SSRC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000562
563 /*
564 * Get RoundTripTime
565 *
566 * return -1 on failure else 0
567 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000568 virtual int32_t RTT(const uint32_t remoteSSRC,
569 uint16_t* RTT,
570 uint16_t* avgRTT,
571 uint16_t* minRTT,
572 uint16_t* maxRTT) const = 0 ;
niklase@google.com470e71d2011-07-07 08:21:25 +0000573
574 /*
575 * Reset RoundTripTime statistics
576 *
577 * return -1 on failure else 0
578 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000579 virtual int32_t ResetRTT(const uint32_t remoteSSRC)= 0 ;
niklase@google.com470e71d2011-07-07 08:21:25 +0000580
581 /*
mflodman@webrtc.org7c894b72012-11-26 12:40:15 +0000582 * Sets the estimated RTT, to be used for receive only modules without
583 * possibility of calculating its own RTT.
584 */
585 virtual void SetRtt(uint32_t rtt) = 0;
586
587 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000588 * Force a send of a RTCP packet
589 * normal SR and RR are triggered via the process function
590 *
591 * return -1 on failure else 0
592 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000593 virtual int32_t SendRTCP(
594 uint32_t rtcpPacketType = kRtcpReport) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000595
596 /*
597 * Good state of RTP receiver inform sender
598 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000599 virtual int32_t SendRTCPReferencePictureSelection(
600 const uint64_t pictureID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000601
602 /*
603 * Send a RTCP Slice Loss Indication (SLI)
604 * 6 least significant bits of pictureID
605 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000606 virtual int32_t SendRTCPSliceLossIndication(
607 const uint8_t pictureID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000608
609 /*
610 * Reset RTP statistics
611 *
612 * return -1 on failure else 0
613 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000614 virtual int32_t ResetStatisticsRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000615
616 /*
617 * statistics of our localy created statistics of the received RTP stream
618 *
619 * return -1 on failure else 0
620 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000621 virtual int32_t StatisticsRTP(
622 uint8_t* fraction_lost, // scale 0 to 255
623 uint32_t* cum_lost, // number of lost packets
624 uint32_t* ext_max, // highest sequence number received
625 uint32_t* jitter,
626 uint32_t* max_jitter = NULL) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000627
628 /*
629 * Reset RTP data counters for the receiving side
630 *
631 * return -1 on failure else 0
632 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000633 virtual int32_t ResetReceiveDataCountersRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000634
635 /*
636 * Reset RTP data counters for the sending side
637 *
638 * return -1 on failure else 0
639 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000640 virtual int32_t ResetSendDataCountersRTP() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000641
642 /*
643 * statistics of the amount of data sent and received
644 *
645 * return -1 on failure else 0
646 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000647 virtual int32_t DataCountersRTP(
648 uint32_t* bytesSent,
649 uint32_t* packetsSent,
650 uint32_t* bytesReceived,
651 uint32_t* packetsReceived) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000652 /*
653 * Get received RTCP sender info
654 *
655 * return -1 on failure else 0
656 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000657 virtual int32_t RemoteRTCPStat(RTCPSenderInfo* senderInfo) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000658
659 /*
660 * Get received RTCP report block
661 *
662 * return -1 on failure else 0
663 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000664 virtual int32_t RemoteRTCPStat(
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +0000665 std::vector<RTCPReportBlock>* receiveBlocks) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000666 /*
667 * Set received RTCP report block
668 *
669 * return -1 on failure else 0
670 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000671 virtual int32_t AddRTCPReportBlock(
672 const uint32_t SSRC,
perkj@webrtc.orgce5990c2012-01-11 13:00:08 +0000673 const RTCPReportBlock* receiveBlock) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000674
675 /*
676 * RemoveRTCPReportBlock
677 *
678 * return -1 on failure else 0
679 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000680 virtual int32_t RemoveRTCPReportBlock(const uint32_t SSRC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000681
682 /*
683 * (APP) Application specific data
684 *
685 * return -1 on failure else 0
686 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000687 virtual int32_t SetRTCPApplicationSpecificData(
688 const uint8_t subType,
689 const uint32_t name,
690 const uint8_t* data,
691 const uint16_t length) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000692 /*
693 * (XR) VOIP metric
694 *
695 * return -1 on failure else 0
696 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000697 virtual int32_t SetRTCPVoIPMetrics(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000698 const RTCPVoIPMetric* VoIPMetric) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000699
700 /*
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000701 * (REMB) Receiver Estimated Max Bitrate
702 */
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000703 virtual bool REMB() const = 0;
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000704
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000705 virtual int32_t SetREMBStatus(const bool enable) = 0;
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000706
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000707 virtual int32_t SetREMBData(const uint32_t bitrate,
708 const uint8_t numberOfSSRC,
709 const uint32_t* SSRC) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000710
711 /*
712 * (IJ) Extended jitter report.
713 */
714 virtual bool IJ() const = 0;
715
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000716 virtual int32_t SetIJStatus(const bool enable) = 0;
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000717
pwestin@webrtc.org741da942011-09-20 13:52:04 +0000718 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000719 * (TMMBR) Temporary Max Media Bit Rate
720 */
asapersson@webrtc.org5249cc82011-12-16 14:31:37 +0000721 virtual bool TMMBR() const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000722
723 /*
724 *
725 * return -1 on failure else 0
726 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000727 virtual int32_t SetTMMBRStatus(const bool enable) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000728
729 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000730 * (NACK)
731 */
732 virtual NACKMethod NACK() const = 0;
733
734 /*
735 * Turn negative acknowledgement requests on/off
stefan@webrtc.orgbecf9c82013-02-01 15:09:57 +0000736 * |max_reordering_threshold| should be set to how much a retransmitted
737 * packet can be expected to be reordered (in sequence numbers) compared to
738 * a packet which has not been retransmitted.
niklase@google.com470e71d2011-07-07 08:21:25 +0000739 *
740 * return -1 on failure else 0
741 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000742 virtual int32_t SetNACKStatus(const NACKMethod method,
743 int max_reordering_threshold) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000744
745 /*
stefan@webrtc.org6a4bef42011-12-22 12:52:41 +0000746 * TODO(holmer): Propagate this API to VideoEngine.
747 * Returns the currently configured selective retransmission settings.
748 */
749 virtual int SelectiveRetransmissions() const = 0;
750
751 /*
752 * TODO(holmer): Propagate this API to VideoEngine.
753 * Sets the selective retransmission settings, which will decide which
754 * packets will be retransmitted if NACKed. Settings are constructed by
755 * combining the constants in enum RetransmissionMode with bitwise OR.
756 * All packets are retransmitted if kRetransmitAllPackets is set, while no
757 * packets are retransmitted if kRetransmitOff is set.
758 * By default all packets except FEC packets are retransmitted. For VP8
759 * with temporal scalability only base layer packets are retransmitted.
760 *
761 * Returns -1 on failure, otherwise 0.
762 */
763 virtual int SetSelectiveRetransmissions(uint8_t settings) = 0;
764
765 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000766 * Send a Negative acknowledgement packet
767 *
768 * return -1 on failure else 0
769 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000770 virtual int32_t SendNACK(const uint16_t* nackList,
771 const uint16_t size) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000772
773 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000774 * Store the sent packets, needed to answer to a Negative acknowledgement
775 * requests
niklase@google.com470e71d2011-07-07 08:21:25 +0000776 *
777 * return -1 on failure else 0
778 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000779 virtual int32_t SetStorePacketsStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000780 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000781 const uint16_t numberToStore) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000782
783 /**************************************************************************
784 *
785 * Audio
786 *
787 ***************************************************************************/
788
789 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000790 * set audio packet size, used to determine when it's time to send a DTMF
791 * packet in silence (CNG)
niklase@google.com470e71d2011-07-07 08:21:25 +0000792 *
793 * return -1 on failure else 0
794 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000795 virtual int32_t SetAudioPacketSize(
796 const uint16_t packetSizeSamples) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000797
798 /*
turaj@webrtc.orgb7edd062013-03-12 22:27:27 +0000799 * Forward DTMF to decoder for playout.
niklase@google.com470e71d2011-07-07 08:21:25 +0000800 *
801 * return -1 on failure else 0
802 */
turaj@webrtc.orgb7edd062013-03-12 22:27:27 +0000803 virtual int SetTelephoneEventForwardToDecoder(bool forwardToDecoder) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000804
805 /*
806 * Returns true if received DTMF events are forwarded to the decoder using
807 * the OnPlayTelephoneEvent callback.
808 */
809 virtual bool TelephoneEventForwardToDecoder() const = 0;
810
811 /*
812 * SendTelephoneEventActive
813 *
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000814 * return true if we currently send a telephone event and 100 ms after an
815 * event is sent used to prevent the telephone event tone to be recorded
816 * by the microphone and send inband just after the tone has ended.
niklase@google.com470e71d2011-07-07 08:21:25 +0000817 */
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000818 virtual bool SendTelephoneEventActive(
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000819 int8_t& telephoneEvent) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000820
821 /*
822 * Send a TelephoneEvent tone using RFC 2833 (4733)
823 *
824 * return -1 on failure else 0
825 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000826 virtual int32_t SendTelephoneEventOutband(
827 const uint8_t key,
828 const uint16_t time_ms,
829 const uint8_t level) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000830
831 /*
832 * Set payload type for Redundant Audio Data RFC 2198
833 *
834 * return -1 on failure else 0
835 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000836 virtual int32_t SetSendREDPayloadType(
837 const int8_t payloadType) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000838
839 /*
840 * Get payload type for Redundant Audio Data RFC 2198
841 *
842 * return -1 on failure else 0
843 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000844 virtual int32_t SendREDPayloadType(
845 int8_t& payloadType) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000846
847 /*
848 * Set status and ID for header-extension-for-audio-level-indication.
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000849 * See http://tools.ietf.org/html/rfc6464 for more details.
niklase@google.com470e71d2011-07-07 08:21:25 +0000850 *
851 * return -1 on failure else 0
852 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000853 virtual int32_t SetRTPAudioLevelIndicationStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000854 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000855 const uint8_t ID) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000856
857 /*
858 * Get status and ID for header-extension-for-audio-level-indication.
859 *
860 * return -1 on failure else 0
861 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000862 virtual int32_t GetRTPAudioLevelIndicationStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000863 bool& enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000864 uint8_t& ID) const = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000865
866 /*
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000867 * Store the audio level in dBov for header-extension-for-audio-level-
868 * indication.
niklase@google.com470e71d2011-07-07 08:21:25 +0000869 * This API shall be called before transmision of an RTP packet to ensure
870 * that the |level| part of the extended RTP header is updated.
871 *
872 * return -1 on failure else 0.
873 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000874 virtual int32_t SetAudioLevel(const uint8_t level_dBov) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000875
876 /**************************************************************************
877 *
878 * Video
879 *
880 ***************************************************************************/
881
882 /*
niklase@google.com470e71d2011-07-07 08:21:25 +0000883 * Set the estimated camera delay in MS
884 *
885 * return -1 on failure else 0
886 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000887 virtual int32_t SetCameraDelay(const int32_t delayMS) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000888
889 /*
pwestin@webrtc.org49888ce2012-04-27 05:25:53 +0000890 * Set the target send bitrate
niklase@google.com470e71d2011-07-07 08:21:25 +0000891 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000892 virtual void SetTargetSendBitrate(const uint32_t bitrate) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000893
894 /*
895 * Turn on/off generic FEC
896 *
897 * return -1 on failure else 0
898 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000899 virtual int32_t SetGenericFECStatus(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000900 const bool enable,
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000901 const uint8_t payloadTypeRED,
902 const uint8_t payloadTypeFEC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000903
904 /*
905 * Get generic FEC setting
906 *
907 * return -1 on failure else 0
908 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000909 virtual int32_t GenericFECStatus(bool& enable,
910 uint8_t& payloadTypeRED,
911 uint8_t& payloadTypeFEC) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000912
marpan@google.com80c5d7a2011-07-15 21:32:40 +0000913
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000914 virtual int32_t SetFecParameters(
stefan@webrtc.orge0d6fa42012-03-20 22:10:56 +0000915 const FecProtectionParams* delta_params,
916 const FecProtectionParams* key_params) = 0;
marpan@google.com80c5d7a2011-07-15 21:32:40 +0000917
niklase@google.com470e71d2011-07-07 08:21:25 +0000918 /*
919 * Set method for requestion a new key frame
920 *
921 * return -1 on failure else 0
922 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000923 virtual int32_t SetKeyFrameRequestMethod(
pwestin@webrtc.org2853dde2012-05-11 11:08:54 +0000924 const KeyFrameRequestMethod method) = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000925
926 /*
927 * send a request for a keyframe
928 *
929 * return -1 on failure else 0
930 */
pbos@webrtc.org2f446732013-04-08 11:08:41 +0000931 virtual int32_t RequestKeyFrame() = 0;
niklase@google.com470e71d2011-07-07 08:21:25 +0000932};
933} // namespace webrtc
934#endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_H_