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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index 9a4ef3105a5a1f3314f4a4671836aaf59a52acfe..c70b51812dcb8a5273be00dcb9a7f17476c1a60e 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -150,5 +150,15 @@ scoped_refptr<VideoFrameInput> CastSenderImpl::video_frame_input() {
return video_frame_input_;
}
+void CastSenderImpl::SetTargetPlayoutDelay(
+ base::TimeDelta new_target_playout_delay) {
+ if (audio_sender_) {
+ 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.
+ }
+ if (video_sender_) {
+ video_sender_->SetTargetPlayoutDelay(new_target_playout_delay);
+ }
+}
+
} // namespace cast
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698