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 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 210 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
211 const int frequency, | 211 const int frequency, |
212 const size_t channels, | 212 const size_t channels, |
213 const uint32_t rate) = 0; | 213 const uint32_t rate) = 0; |
214 | 214 |
215 virtual void OnIncomingSSRCChanged(const uint32_t ssrc) = 0; | 215 virtual void OnIncomingSSRCChanged(const uint32_t ssrc) = 0; |
216 | 216 |
217 virtual void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) = 0; | 217 virtual void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) = 0; |
218 }; | 218 }; |
219 | 219 |
| 220 class RtpAudioFeedback { |
| 221 public: |
| 222 virtual void OnPlayTelephoneEvent(const uint8_t event, |
| 223 const uint16_t lengthMs, |
| 224 const uint8_t volume) = 0; |
| 225 |
| 226 protected: |
| 227 virtual ~RtpAudioFeedback() {} |
| 228 }; |
| 229 |
220 class RtcpIntraFrameObserver { | 230 class RtcpIntraFrameObserver { |
221 public: | 231 public: |
222 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; | 232 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) = 0; |
223 | 233 |
224 virtual void OnReceivedSLI(uint32_t ssrc, | 234 virtual void OnReceivedSLI(uint32_t ssrc, |
225 uint8_t picture_id) = 0; | 235 uint8_t picture_id) = 0; |
226 | 236 |
227 virtual void OnReceivedRPSI(uint32_t ssrc, | 237 virtual void OnReceivedRPSI(uint32_t ssrc, |
228 uint64_t picture_id) = 0; | 238 uint64_t picture_id) = 0; |
229 | 239 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 const size_t payloadSize, | 350 const size_t payloadSize, |
341 const WebRtcRTPHeader* rtpHeader) override { | 351 const WebRtcRTPHeader* rtpHeader) override { |
342 return 0; | 352 return 0; |
343 } | 353 } |
344 | 354 |
345 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { | 355 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override { |
346 return true; | 356 return true; |
347 } | 357 } |
348 }; | 358 }; |
349 | 359 |
| 360 // Null object version of RtpAudioFeedback. |
| 361 class NullRtpAudioFeedback : public RtpAudioFeedback { |
| 362 public: |
| 363 virtual ~NullRtpAudioFeedback() {} |
| 364 |
| 365 void OnPlayTelephoneEvent(const uint8_t event, |
| 366 const uint16_t lengthMs, |
| 367 const uint8_t volume) override {} |
| 368 }; |
| 369 |
350 // Statistics about packet loss for a single directional connection. All values | 370 // Statistics about packet loss for a single directional connection. All values |
351 // are totals since the connection initiated. | 371 // are totals since the connection initiated. |
352 struct RtpPacketLossStats { | 372 struct RtpPacketLossStats { |
353 // The number of packets lost in events where no adjacent packets were also | 373 // The number of packets lost in events where no adjacent packets were also |
354 // lost. | 374 // lost. |
355 uint64_t single_packet_loss_count; | 375 uint64_t single_packet_loss_count; |
356 // The number of events in which more than one adjacent packet was lost. | 376 // The number of events in which more than one adjacent packet was lost. |
357 uint64_t multiple_packet_loss_event_count; | 377 uint64_t multiple_packet_loss_event_count; |
358 // The number of packets lost in events where more than one adjacent packet | 378 // The number of packets lost in events where more than one adjacent packet |
359 // was lost. | 379 // was lost. |
(...skipping 26 matching lines...) Expand all Loading... |
386 class TransportSequenceNumberAllocator { | 406 class TransportSequenceNumberAllocator { |
387 public: | 407 public: |
388 TransportSequenceNumberAllocator() {} | 408 TransportSequenceNumberAllocator() {} |
389 virtual ~TransportSequenceNumberAllocator() {} | 409 virtual ~TransportSequenceNumberAllocator() {} |
390 | 410 |
391 virtual uint16_t AllocateSequenceNumber() = 0; | 411 virtual uint16_t AllocateSequenceNumber() = 0; |
392 }; | 412 }; |
393 | 413 |
394 } // namespace webrtc | 414 } // namespace webrtc |
395 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 415 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |