OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
13 | 13 |
14 #include <set> | 14 #include <set> |
15 #include <string> | 15 #include <string> |
16 #include <utility> | 16 #include <utility> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/constructormagic.h" | 19 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/base/deprecation.h" | 20 #include "webrtc/base/deprecation.h" |
| 21 #include "webrtc/base/optional.h" |
21 #include "webrtc/modules/include/module.h" | 22 #include "webrtc/modules/include/module.h" |
22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
23 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 24 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
24 | 25 |
25 namespace webrtc { | 26 namespace webrtc { |
26 | 27 |
27 // Forward declarations. | 28 // Forward declarations. |
28 class RateLimiter; | 29 class RateLimiter; |
29 class ReceiveStatistics; | 30 class ReceiveStatistics; |
30 class RemoteBitrateEstimator; | 31 class RemoteBitrateEstimator; |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 196 |
196 // Sets the SSRC to use when sending RTX packets. This doesn't enable RTX, | 197 // Sets the SSRC to use when sending RTX packets. This doesn't enable RTX, |
197 // only the SSRC is set. | 198 // only the SSRC is set. |
198 virtual void SetRtxSsrc(uint32_t ssrc) = 0; | 199 virtual void SetRtxSsrc(uint32_t ssrc) = 0; |
199 | 200 |
200 // Sets the payload type to use when sending RTX packets. Note that this | 201 // Sets the payload type to use when sending RTX packets. Note that this |
201 // doesn't enable RTX, only the payload type is set. | 202 // doesn't enable RTX, only the payload type is set. |
202 virtual void SetRtxSendPayloadType(int payload_type, | 203 virtual void SetRtxSendPayloadType(int payload_type, |
203 int associated_payload_type) = 0; | 204 int associated_payload_type) = 0; |
204 | 205 |
| 206 // Returns the FlexFEC SSRC, if there is one. |
| 207 virtual rtc::Optional<uint32_t> FlexfecSsrc() const = 0; |
| 208 |
205 // Sets sending status. Sends kRtcpByeCode when going from true to false. | 209 // Sets sending status. Sends kRtcpByeCode when going from true to false. |
206 // Returns -1 on failure else 0. | 210 // Returns -1 on failure else 0. |
207 virtual int32_t SetSendingStatus(bool sending) = 0; | 211 virtual int32_t SetSendingStatus(bool sending) = 0; |
208 | 212 |
209 // Returns current sending status. | 213 // Returns current sending status. |
210 virtual bool Sending() const = 0; | 214 virtual bool Sending() const = 0; |
211 | 215 |
212 // Starts/Stops media packets. On by default. | 216 // Starts/Stops media packets. On by default. |
213 virtual void SetSendingMediaStatus(bool sending) = 0; | 217 virtual void SetSendingMediaStatus(bool sending) = 0; |
214 | 218 |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; | 470 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; |
467 | 471 |
468 // Sends a request for a keyframe. | 472 // Sends a request for a keyframe. |
469 // Returns -1 on failure else 0. | 473 // Returns -1 on failure else 0. |
470 virtual int32_t RequestKeyFrame() = 0; | 474 virtual int32_t RequestKeyFrame() = 0; |
471 }; | 475 }; |
472 | 476 |
473 } // namespace webrtc | 477 } // namespace webrtc |
474 | 478 |
475 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ | 479 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ |
OLD | NEW |