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/audio_sender/audio_sender.h" | 5 #include "media/cast/audio_sender/audio_sender.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "crypto/encryptor.h" | 10 #include "crypto/encryptor.h" |
11 #include "crypto/symmetric_key.h" | 11 #include "crypto/symmetric_key.h" |
12 #include "media/cast/audio_sender/audio_encoder.h" | 12 #include "media/cast/audio_sender/audio_encoder.h" |
13 #include "media/cast/cast_environment.h" | 13 #include "media/cast/cast_environment.h" |
| 14 #include "media/cast/net/rtp_sender/rtp_sender.h" |
14 #include "media/cast/rtcp/rtcp.h" | 15 #include "media/cast/rtcp/rtcp.h" |
15 #include "media/cast/rtp_sender/rtp_sender.h" | |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 namespace cast { | 18 namespace cast { |
19 | 19 |
20 const int64 kMinSchedulingDelayMs = 1; | 20 const int64 kMinSchedulingDelayMs = 1; |
21 | 21 |
22 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback { | 22 class LocalRtcpAudioSenderFeedback : public RtcpSenderFeedback { |
23 public: | 23 public: |
24 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender) | 24 explicit LocalRtcpAudioSenderFeedback(AudioSender* audio_sender) |
25 : audio_sender_(audio_sender) { | 25 : audio_sender_(audio_sender) { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } | 199 } |
200 | 200 |
201 void AudioSender::SendRtcpReport() { | 201 void AudioSender::SendRtcpReport() { |
202 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); | 202 DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN)); |
203 rtcp_.SendRtcpFromRtpSender(NULL); // TODO(pwestin): add logging. | 203 rtcp_.SendRtcpFromRtpSender(NULL); // TODO(pwestin): add logging. |
204 ScheduleNextRtcpReport(); | 204 ScheduleNextRtcpReport(); |
205 } | 205 } |
206 | 206 |
207 } // namespace cast | 207 } // namespace cast |
208 } // namespace media | 208 } // namespace media |
OLD | NEW |