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 // This is the main interface for the cast transport sender. It accepts encoded | 5 // This is the main interface for the cast transport sender. It accepts encoded |
| 6 // frames (both audio and video), encrypts their encoded data, packetizes them | 6 // frames (both audio and video), encrypts their encoded data, packetizes them |
| 7 // and feeds them into a transport (e.g., UDP). | 7 // and feeds them into a transport (e.g., UDP). |
| 8 | 8 |
| 9 // Construction of the Cast Sender and the Cast Transport Sender should be done | 9 // Construction of the Cast Sender and the Cast Transport Sender should be done |
| 10 // in the following order: | 10 // in the following order: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 // RTCP Sender Report. | 85 // RTCP Sender Report. |
| 86 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, | 86 virtual void SendRtcpFromRtpSender(uint32 packet_type_flags, |
| 87 uint32 ntp_seconds, | 87 uint32 ntp_seconds, |
| 88 uint32 ntp_fraction, | 88 uint32 ntp_fraction, |
| 89 uint32 rtp_timestamp, | 89 uint32 rtp_timestamp, |
| 90 const RtcpDlrrReportBlock& dlrr, | 90 const RtcpDlrrReportBlock& dlrr, |
| 91 uint32 sending_ssrc, | 91 uint32 sending_ssrc, |
| 92 const std::string& c_name) = 0; | 92 const std::string& c_name) = 0; |
| 93 | 93 |
| 94 // Retransmission request. | 94 // Retransmission request. |
| 95 // |missing_packets| includes the list of frames and packets in each | |
| 96 // frame to be re-transmitted. | |
| 97 // If |cancel_rtx_not_in_list| is used as an optimization to cancel | |
|
dcheng
2014/06/11 17:02:47
Nit: no "If" here? Not sure how to parse this comm
| |
| 98 // pending re-transmission requests of packets not listed in | |
| 99 // |missing_packets|. | |
| 95 virtual void ResendPackets( | 100 virtual void ResendPackets( |
| 96 bool is_audio, | 101 bool is_audio, |
| 97 const MissingFramesAndPacketsMap& missing_packets) = 0; | 102 const MissingFramesAndPacketsMap& missing_packets, |
| 103 bool cancel_rtx_not_in_list) = 0; | |
| 98 }; | 104 }; |
| 99 | 105 |
| 100 } // namespace transport | 106 } // namespace transport |
| 101 } // namespace cast | 107 } // namespace cast |
| 102 } // namespace media | 108 } // namespace media |
| 103 | 109 |
| 104 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ | 110 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_SENDER_H_ |
| OLD | NEW |