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 file contains the interface to the cast RTP sender. | 5 // This file contains the interface to the cast RTP sender. |
6 | 6 |
7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 7 #ifndef MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 8 #define MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // audio frames. Returns false if configuration is invalid. | 44 // audio frames. Returns false if configuration is invalid. |
45 bool InitializeAudio(const CastTransportAudioConfig& config); | 45 bool InitializeAudio(const CastTransportAudioConfig& config); |
46 | 46 |
47 // Initialize video stack. Video must be initialized prior to sending encoded | 47 // Initialize video stack. Video must be initialized prior to sending encoded |
48 // video frames. Returns false if configuration is invalid. | 48 // video frames. Returns false if configuration is invalid. |
49 bool InitializeVideo(const CastTransportVideoConfig& config); | 49 bool InitializeVideo(const CastTransportVideoConfig& config); |
50 | 50 |
51 void SendFrame(const EncodedFrame& frame); | 51 void SendFrame(const EncodedFrame& frame); |
52 | 52 |
53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets, | 53 void ResendPackets(const MissingFramesAndPacketsMap& missing_packets, |
54 bool cancel_rtx_if_not_in_list); | 54 bool cancel_rtx_if_not_in_list, |
| 55 base::TimeDelta rtt); |
55 | 56 |
56 size_t send_packet_count() const { | 57 size_t send_packet_count() const { |
57 return packetizer_ ? packetizer_->send_packet_count() : 0; | 58 return packetizer_ ? packetizer_->send_packet_count() : 0; |
58 } | 59 } |
59 size_t send_octet_count() const { | 60 size_t send_octet_count() const { |
60 return packetizer_ ? packetizer_->send_octet_count() : 0; | 61 return packetizer_ ? packetizer_->send_octet_count() : 0; |
61 } | 62 } |
62 uint32 ssrc() const { return config_.ssrc; } | 63 uint32 ssrc() const { return config_.ssrc; } |
63 | 64 |
64 private: | 65 private: |
(...skipping 10 matching lines...) Expand all Loading... |
75 base::WeakPtrFactory<RtpSender> weak_factory_; | 76 base::WeakPtrFactory<RtpSender> weak_factory_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(RtpSender); | 78 DISALLOW_COPY_AND_ASSIGN(RtpSender); |
78 }; | 79 }; |
79 | 80 |
80 } // namespace transport | 81 } // namespace transport |
81 } // namespace cast | 82 } // namespace cast |
82 } // namespace media | 83 } // namespace media |
83 | 84 |
84 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ | 85 #endif // MEDIA_CAST_TRANSPORT_RTP_SENDER_RTP_SENDER_H_ |
OLD | NEW |