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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // while we are paused. | 463 // while we are paused. |
464 | 464 |
465 // Returns true if we send the packet now, else it will add the packet | 465 // Returns true if we send the packet now, else it will add the packet |
466 // information to the queue and call TimeToSendPacket when it's time to send. | 466 // information to the queue and call TimeToSendPacket when it's time to send. |
467 virtual void InsertPacket(Priority priority, | 467 virtual void InsertPacket(Priority priority, |
468 uint32_t ssrc, | 468 uint32_t ssrc, |
469 uint16_t sequence_number, | 469 uint16_t sequence_number, |
470 int64_t capture_time_ms, | 470 int64_t capture_time_ms, |
471 size_t bytes, | 471 size_t bytes, |
472 bool retransmission) = 0; | 472 bool retransmission) = 0; |
| 473 |
| 474 // Currently audio traffic is not accounted by pacer and passed through. |
| 475 // With the introduction of audio BWE audio traffic will be accounted for |
| 476 // the pacer budget calculation. The audio traffic still will be injected |
| 477 // at high priority. |
| 478 virtual void SetAccountForAudioPackets(bool account_for_audio) = 0; |
473 }; | 479 }; |
474 | 480 |
475 class TransportSequenceNumberAllocator { | 481 class TransportSequenceNumberAllocator { |
476 public: | 482 public: |
477 TransportSequenceNumberAllocator() {} | 483 TransportSequenceNumberAllocator() {} |
478 virtual ~TransportSequenceNumberAllocator() {} | 484 virtual ~TransportSequenceNumberAllocator() {} |
479 | 485 |
480 virtual uint16_t AllocateSequenceNumber() = 0; | 486 virtual uint16_t AllocateSequenceNumber() = 0; |
481 }; | 487 }; |
482 | 488 |
483 } // namespace webrtc | 489 } // namespace webrtc |
484 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ | 490 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_DEFINES_H_ |
OLD | NEW |