diff options
author | mikhal@chromium.org <mikhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:34:20 +0000 |
---|---|---|
committer | mikhal@chromium.org <mikhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:34:20 +0000 |
commit | 07c7bbcd6526568e8325cb79707b9a2784b82749 (patch) | |
tree | 378e32124c93d01fd828a06660b7503cc65a89a8 /media/cast/audio_receiver/audio_receiver.cc | |
parent | 12b7af356ea046e14f0c070d5368591ea6accefa (diff) | |
download | chromium_src-07c7bbcd6526568e8325cb79707b9a2784b82749.zip chromium_src-07c7bbcd6526568e8325cb79707b9a2784b82749.tar.gz chromium_src-07c7bbcd6526568e8325cb79707b9a2784b82749.tar.bz2 |
Cast:Adding signaling and infrastructure for adjustable delay
Actual adjustment of the target delay will be done in a follow up cl.
This cl also includes some clean-up of the rtcp types.
Review URL: https://codereview.chromium.org/192843002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/audio_receiver/audio_receiver.cc')
-rw-r--r-- | media/cast/audio_receiver/audio_receiver.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/cast/audio_receiver/audio_receiver.cc b/media/cast/audio_receiver/audio_receiver.cc index b9db5d8..b5c8e08 100644 --- a/media/cast/audio_receiver/audio_receiver.cc +++ b/media/cast/audio_receiver/audio_receiver.cc @@ -119,6 +119,8 @@ AudioReceiver::AudioReceiver(scoped_refptr<CastEnvironment> cast_environment, audio_config.rtcp_mode, rtcp_interval_delta, audio_config.feedback_ssrc, audio_config.incoming_ssrc, audio_config.rtcp_c_name)); + // Set the target delay that will be conveyed to the sender. + rtcp_->SetTargetDelay(target_delay_delta_); cast_environment_->Logging()->AddRawEventSubscriber(&event_subscriber_); memset(frame_id_to_rtp_timestamp_, 0, sizeof(frame_id_to_rtp_timestamp_)); } @@ -367,6 +369,11 @@ void AudioReceiver::IncomingPacket(scoped_ptr<Packet> packet) { } } +void AudioReceiver::SetTargetDelay(base::TimeDelta target_delay) { + target_delay_delta_ = target_delay; + rtcp_->SetTargetDelay(target_delay_delta_); +} + void AudioReceiver::CastFeedback(const RtcpCastMessage& cast_message) { base::TimeTicks now = cast_environment_->Clock()->NowTicks(); RtpTimestamp rtp_timestamp = |