| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 PacketSender* external_transport); | 65 PacketSender* external_transport); |
| 66 | 66 |
| 67 virtual ~CastTransportSenderImpl(); | 67 virtual ~CastTransportSenderImpl(); |
| 68 | 68 |
| 69 virtual void InitializeAudio(const CastTransportRtpConfig& config, | 69 virtual void InitializeAudio(const CastTransportRtpConfig& config, |
| 70 const RtcpCastMessageCallback& cast_message_cb, | 70 const RtcpCastMessageCallback& cast_message_cb, |
| 71 const RtcpRttCallback& rtt_cb) OVERRIDE; | 71 const RtcpRttCallback& rtt_cb) OVERRIDE; |
| 72 virtual void InitializeVideo(const CastTransportRtpConfig& config, | 72 virtual void InitializeVideo(const CastTransportRtpConfig& config, |
| 73 const RtcpCastMessageCallback& cast_message_cb, | 73 const RtcpCastMessageCallback& cast_message_cb, |
| 74 const RtcpRttCallback& rtt_cb) OVERRIDE; | 74 const RtcpRttCallback& rtt_cb) OVERRIDE; |
| 75 virtual void InsertCodedAudioFrame(const EncodedFrame& audio_frame) OVERRIDE; | 75 virtual void InsertFrame(uint32 ssrc, const EncodedFrame& frame) OVERRIDE; |
| 76 virtual void InsertCodedVideoFrame(const EncodedFrame& video_frame) OVERRIDE; | |
| 77 | 76 |
| 78 virtual void SendSenderReport( | 77 virtual void SendSenderReport( |
| 79 uint32 ssrc, | 78 uint32 ssrc, |
| 80 base::TimeTicks current_time, | 79 base::TimeTicks current_time, |
| 81 uint32 current_time_as_rtp_timestamp) OVERRIDE; | 80 uint32 current_time_as_rtp_timestamp) OVERRIDE; |
| 82 | 81 |
| 83 virtual void CancelSendingFrames( | 82 virtual void CancelSendingFrames( |
| 84 uint32 ssrc, | 83 uint32 ssrc, |
| 85 const std::vector<uint32>& frame_ids) OVERRIDE; | 84 const std::vector<uint32>& frame_ids) OVERRIDE; |
| 86 | 85 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; | 160 base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_; |
| 162 | 161 |
| 163 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); | 162 DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl); |
| 164 }; | 163 }; |
| 165 | 164 |
| 166 } // namespace cast | 165 } // namespace cast |
| 167 } // namespace media | 166 } // namespace media |
| 168 | 167 |
| 169 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_IMPL_H_ | 168 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_IMPL_H_ |
| OLD | NEW |