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

Unified Diff: media/cast/cast_receiver_impl.cc

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 9 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
« no previous file with comments | « media/cast/cast_receiver_impl.h ('k') | media/cast/rtcp/rtcp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_receiver_impl.cc
diff --git a/media/cast/cast_receiver_impl.cc b/media/cast/cast_receiver_impl.cc
index 4561fea5ff7b39db6d3e5eeefc3fd998c77c3700..0505f44a6fccae9a87f9075f5d5bbae12e6cc3a0 100644
--- a/media/cast/cast_receiver_impl.cc
+++ b/media/cast/cast_receiver_impl.cc
@@ -100,7 +100,11 @@ CastReceiverImpl::CastReceiverImpl(
packet_sender,
cast_environment->GetTaskRunner(CastEnvironment::TRANSPORT)),
audio_receiver_(cast_environment, audio_config, &pacer_),
- video_receiver_(cast_environment, video_config, &pacer_),
+ video_receiver_(cast_environment,
+ video_config,
+ &pacer_,
+ base::Bind(&CastReceiverImpl::UpdateTargetDelay,
+ base::Unretained(this))),
frame_receiver_(new LocalFrameReceiver(cast_environment,
&audio_receiver_,
&video_receiver_)),
@@ -146,6 +150,10 @@ void CastReceiverImpl::ReceivedPacket(scoped_ptr<Packet> packet) {
}
}
+void CastReceiverImpl::UpdateTargetDelay(base::TimeDelta target_delay_ms) {
+ audio_receiver_.SetTargetDelay(target_delay_ms);
+}
+
transport::PacketReceiverCallback CastReceiverImpl::packet_receiver() {
return base::Bind(&CastReceiverImpl::ReceivedPacket, base::Unretained(this));
}
« no previous file with comments | « media/cast/cast_receiver_impl.h ('k') | media/cast/rtcp/rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698