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_receiver/audio_receiver.h" | 5 #include "media/cast/audio_receiver/audio_receiver.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 "media/cast/audio_receiver/audio_decoder.h" | 10 #include "media/cast/audio_receiver/audio_decoder.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 class LocalRtpAudioFeedback : public RtpPayloadFeedback { | 64 class LocalRtpAudioFeedback : public RtpPayloadFeedback { |
65 public: | 65 public: |
66 explicit LocalRtpAudioFeedback(AudioReceiver* audio_receiver) | 66 explicit LocalRtpAudioFeedback(AudioReceiver* audio_receiver) |
67 : audio_receiver_(audio_receiver) { | 67 : audio_receiver_(audio_receiver) { |
68 } | 68 } |
69 | 69 |
70 virtual void CastFeedback(const RtcpCastMessage& cast_message) OVERRIDE { | 70 virtual void CastFeedback(const RtcpCastMessage& cast_message) OVERRIDE { |
71 audio_receiver_->CastFeedback(cast_message); | 71 audio_receiver_->CastFeedback(cast_message); |
72 } | 72 } |
73 | 73 |
74 virtual void RequestKeyFrame() OVERRIDE { | |
75 DCHECK(false) << "Invalid callback"; | |
76 } | |
77 | |
78 private: | 74 private: |
79 AudioReceiver* audio_receiver_; | 75 AudioReceiver* audio_receiver_; |
80 }; | 76 }; |
81 | 77 |
82 class LocalRtpReceiverStatistics : public RtpReceiverStatistics { | 78 class LocalRtpReceiverStatistics : public RtpReceiverStatistics { |
83 public: | 79 public: |
84 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver) | 80 explicit LocalRtpReceiverStatistics(RtpReceiver* rtp_receiver) |
85 : rtp_receiver_(rtp_receiver) { | 81 : rtp_receiver_(rtp_receiver) { |
86 } | 82 } |
87 | 83 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 weak_factory_.GetWeakPtr()), time_to_send); | 292 weak_factory_.GetWeakPtr()), time_to_send); |
297 } | 293 } |
298 | 294 |
299 void AudioReceiver::SendNextRtcpReport() { | 295 void AudioReceiver::SendNextRtcpReport() { |
300 rtcp_->SendRtcpReport(incoming_ssrc_); | 296 rtcp_->SendRtcpReport(incoming_ssrc_); |
301 ScheduleNextRtcpReport(); | 297 ScheduleNextRtcpReport(); |
302 } | 298 } |
303 | 299 |
304 } // namespace cast | 300 } // namespace cast |
305 } // namespace media | 301 } // namespace media |
OLD | NEW |