Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/cast/transport/rtp_sender/rtp_sender.h" | 5 #include "media/cast/transport/rtp_sender/rtp_sender.h" |
| 6 | 6 |
| 7 #include "base/big_endian.h" | |
|
tfarina
2014/02/26 02:54:24
note to myself: remove, unused?
tfarina
2014/02/26 02:54:24
Done.
| |
| 7 #include "base/logging.h" | 8 #include "base/logging.h" |
| 8 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 9 #include "media/cast/transport/cast_transport_defines.h" | 10 #include "media/cast/transport/cast_transport_defines.h" |
| 10 #include "media/cast/transport/pacing/paced_sender.h" | 11 #include "media/cast/transport/pacing/paced_sender.h" |
| 11 #include "net/base/big_endian.h" | |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 namespace cast { | 14 namespace cast { |
| 15 namespace transport { | 15 namespace transport { |
| 16 | 16 |
| 17 // Schedule the RTP statistics callback every 33mS. As this interval affects the | 17 // Schedule the RTP statistics callback every 33mS. As this interval affects the |
| 18 // time offset of the render and playout times, we want it in the same ball park | 18 // time offset of the render and playout times, we want it in the same ball park |
| 19 // as the frame rate. | 19 // as the frame rate. |
| 20 static const int kStatsCallbackIntervalMs = 33; | 20 static const int kStatsCallbackIntervalMs = 33; |
| 21 | 21 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 packetizer_->LastSentTimestamp(&time_sent, &rtp_timestamp); | 145 packetizer_->LastSentTimestamp(&time_sent, &rtp_timestamp); |
| 146 sender_info.send_packet_count = packetizer_->send_packets_count(); | 146 sender_info.send_packet_count = packetizer_->send_packets_count(); |
| 147 sender_info.send_octet_count = packetizer_->send_octet_count(); | 147 sender_info.send_octet_count = packetizer_->send_octet_count(); |
| 148 stats_callback_.Run(sender_info, time_sent, rtp_timestamp); | 148 stats_callback_.Run(sender_info, time_sent, rtp_timestamp); |
| 149 ScheduleNextStatsReport(); | 149 ScheduleNextStatsReport(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace transport | 152 } // namespace transport |
| 153 } // namespace cast | 153 } // namespace cast |
| 154 } // namespace media | 154 } // namespace media |
| OLD | NEW |