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/rtcp/rtcp_sender.h" | 5 #include "media/cast/rtcp/rtcp_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "media/cast/cast_environment.h" | 11 #include "media/cast/cast_environment.h" |
12 #include "media/cast/pacing/paced_sender.h" | 12 #include "media/cast/pacing/paced_sender.h" |
13 #include "media/cast/rtcp/rtcp_utility.h" | 13 #include "media/cast/rtcp/rtcp_utility.h" |
14 #include "net/base/big_endian.h" | 14 #include "net/base/big_endian.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 namespace cast { | 17 namespace cast { |
18 | 18 |
19 static const size_t kRtcpMaxNackFields = 253; | |
20 static const size_t kRtcpMaxCastLossFields = 100; | |
21 | |
22 RtcpSender::RtcpSender(scoped_refptr<CastEnvironment> cast_environment, | 19 RtcpSender::RtcpSender(scoped_refptr<CastEnvironment> cast_environment, |
23 PacedPacketSender* outgoing_transport, | 20 PacedPacketSender* outgoing_transport, |
24 uint32 sending_ssrc, | 21 uint32 sending_ssrc, |
25 const std::string& c_name) | 22 const std::string& c_name) |
26 : ssrc_(sending_ssrc), | 23 : ssrc_(sending_ssrc), |
27 c_name_(c_name), | 24 c_name_(c_name), |
28 transport_(outgoing_transport), | 25 transport_(outgoing_transport), |
29 cast_environment_(cast_environment) { | 26 cast_environment_(cast_environment) { |
30 DCHECK_LT(c_name_.length(), kRtcpCnameSize) << "Invalid config"; | 27 DCHECK_LT(c_name_.length(), kRtcpCnameSize) << "Invalid config"; |
31 } | 28 } |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 571 |
575 void RtcpSender::BuildReceiverLog( | 572 void RtcpSender::BuildReceiverLog( |
576 const RtcpReceiverLogMessage* receiver_log_message, | 573 const RtcpReceiverLogMessage* receiver_log_message, |
577 std::vector<uint8>* packet) const { | 574 std::vector<uint8>* packet) const { |
578 // TODO(pwestin): Implement. | 575 // TODO(pwestin): Implement. |
579 NOTIMPLEMENTED(); | 576 NOTIMPLEMENTED(); |
580 } | 577 } |
581 | 578 |
582 } // namespace cast | 579 } // namespace cast |
583 } // namespace media | 580 } // namespace media |
OLD | NEW |