OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 class maintains a send transport for audio and video in a Cast | 5 // This class maintains a send transport for audio and video in a Cast |
6 // Streaming session. | 6 // Streaming session. |
7 // Audio, video frames and RTCP messages are submitted to this object | 7 // Audio, video frames and RTCP messages are submitted to this object |
8 // and then packetized and paced to the underlying UDP socket. | 8 // and then packetized and paced to the underlying UDP socket. |
9 // | 9 // |
10 // The hierarchy of send transport in a Cast Streaming session: | 10 // The hierarchy of send transport in a Cast Streaming session: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void InitializeAudio(const CastTransportRtpConfig& config, | 99 void InitializeAudio(const CastTransportRtpConfig& config, |
100 const RtcpCastMessageCallback& cast_message_cb, | 100 const RtcpCastMessageCallback& cast_message_cb, |
101 const RtcpRttCallback& rtt_cb) final; | 101 const RtcpRttCallback& rtt_cb) final; |
102 void InitializeVideo(const CastTransportRtpConfig& config, | 102 void InitializeVideo(const CastTransportRtpConfig& config, |
103 const RtcpCastMessageCallback& cast_message_cb, | 103 const RtcpCastMessageCallback& cast_message_cb, |
104 const RtcpRttCallback& rtt_cb) final; | 104 const RtcpRttCallback& rtt_cb) final; |
105 void InsertFrame(uint32_t ssrc, const EncodedFrame& frame) final; | 105 void InsertFrame(uint32_t ssrc, const EncodedFrame& frame) final; |
106 | 106 |
107 void SendSenderReport(uint32_t ssrc, | 107 void SendSenderReport(uint32_t ssrc, |
108 base::TimeTicks current_time, | 108 base::TimeTicks current_time, |
109 uint32_t current_time_as_rtp_timestamp) final; | 109 RtpTimeTicks current_time_as_rtp_timestamp) final; |
110 | 110 |
111 void CancelSendingFrames(uint32_t ssrc, | 111 void CancelSendingFrames(uint32_t ssrc, |
112 const std::vector<uint32_t>& frame_ids) final; | 112 const std::vector<uint32_t>& frame_ids) final; |
113 | 113 |
114 void ResendFrameForKickstart(uint32_t ssrc, uint32_t frame_id) final; | 114 void ResendFrameForKickstart(uint32_t ssrc, uint32_t frame_id) final; |
115 | 115 |
116 PacketReceiverCallback PacketReceiverForTesting() final; | 116 PacketReceiverCallback PacketReceiverForTesting() final; |
117 | 117 |
118 // CastTransportReceiver implementation. | 118 // CastTransportReceiver implementation. |
119 void AddValidSsrc(uint32_t ssrc) final; | 119 void AddValidSsrc(uint32_t ssrc) final; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; | 209 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; |
210 | 210 |
211 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 211 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
212 }; | 212 }; |
213 | 213 |
214 } // namespace cast | 214 } // namespace cast |
215 } // namespace media | 215 } // namespace media |
216 | 216 |
217 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ | 217 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_SENDER_IMPL_H_ |
OLD | NEW |