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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 return false; | 734 return false; |
735 packet_to_send = packet_rtx.get(); | 735 packet_to_send = packet_rtx.get(); |
736 } | 736 } |
737 | 737 |
738 int64_t now_ms = clock_->TimeInMilliseconds(); | 738 int64_t now_ms = clock_->TimeInMilliseconds(); |
739 int64_t diff_ms = now_ms - capture_time_ms; | 739 int64_t diff_ms = now_ms - capture_time_ms; |
740 packet_to_send->SetExtension<TransmissionOffset>(kTimestampTicksPerMs * | 740 packet_to_send->SetExtension<TransmissionOffset>(kTimestampTicksPerMs * |
741 diff_ms); | 741 diff_ms); |
742 packet_to_send->SetExtension<AbsoluteSendTime>(now_ms); | 742 packet_to_send->SetExtension<AbsoluteSendTime>(now_ms); |
743 | 743 |
| 744 if (packet->HasExtension<VideoTimingExtension>()) |
| 745 packet->set_pacer_exit_time_ms(clock_->TimeInMilliseconds()); |
| 746 |
744 PacketOptions options; | 747 PacketOptions options; |
745 if (UpdateTransportSequenceNumber(packet_to_send, &options.packet_id)) { | 748 if (UpdateTransportSequenceNumber(packet_to_send, &options.packet_id)) { |
746 AddPacketToTransportFeedback(options.packet_id, *packet_to_send, | 749 AddPacketToTransportFeedback(options.packet_id, *packet_to_send, |
747 pacing_info); | 750 pacing_info); |
748 } | 751 } |
749 | 752 |
750 if (!is_retransmit && !send_over_rtx) { | 753 if (!is_retransmit && !send_over_rtx) { |
751 UpdateDelayStatistics(packet->capture_time_ms(), now_ms); | 754 UpdateDelayStatistics(packet->capture_time_ms(), now_ms); |
752 UpdateOnSendPacket(options.packet_id, packet->capture_time_ms(), | 755 UpdateOnSendPacket(options.packet_id, packet->capture_time_ms(), |
753 packet->Ssrc()); | 756 packet->Ssrc()); |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { | 1271 if (rtp_overhead_bytes_per_packet_ == packet.headers_size()) { |
1269 return; | 1272 return; |
1270 } | 1273 } |
1271 rtp_overhead_bytes_per_packet_ = packet.headers_size(); | 1274 rtp_overhead_bytes_per_packet_ = packet.headers_size(); |
1272 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; | 1275 overhead_bytes_per_packet = rtp_overhead_bytes_per_packet_; |
1273 } | 1276 } |
1274 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); | 1277 overhead_observer_->OnOverheadChanged(overhead_bytes_per_packet); |
1275 } | 1278 } |
1276 | 1279 |
1277 } // namespace webrtc | 1280 } // namespace webrtc |
OLD | NEW |