Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Side by Side Diff: media/cast/cast_sender_impl.cc

Issue 493823002: Implement adaptive target delay extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/cast_sender_impl.h" 5 #include "media/cast/cast_sender_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 scoped_refptr<AudioFrameInput> CastSenderImpl::audio_frame_input() { 145 scoped_refptr<AudioFrameInput> CastSenderImpl::audio_frame_input() {
146 return audio_frame_input_; 146 return audio_frame_input_;
147 } 147 }
148 148
149 scoped_refptr<VideoFrameInput> CastSenderImpl::video_frame_input() { 149 scoped_refptr<VideoFrameInput> CastSenderImpl::video_frame_input() {
150 return video_frame_input_; 150 return video_frame_input_;
151 } 151 }
152 152
153 void CastSenderImpl::SetTargetPlayoutDelay(
154 base::TimeDelta new_target_playout_delay) {
155 if (audio_sender_) {
156 audio_sender_->SetTargetPlayoutDelay(new_target_playout_delay);
Alpha Left Google 2014/08/20 20:17:05 What happens if we: 1. InitializeVideo() 2. SetTa
hubbe 2014/08/20 21:42:01 Depends on if (3) uses the same playout delay as (
Alpha Left Google 2014/08/20 21:56:37 When InitializeAudio() or InitializeVideo() is cal
hubbe 2014/08/20 22:46:07 Done.
157 }
158 if (video_sender_) {
159 video_sender_->SetTargetPlayoutDelay(new_target_playout_delay);
160 }
161 }
162
153 } // namespace cast 163 } // namespace cast
154 } // namespace media 164 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698