Commit 393a8e3b authored by hclam@chromium.org's avatar hclam@chromium.org

Cast: Log playout delay from receiver

The last refactoring in RTCP handling dropped the playout delay from
receiver. This change adds it back.

TBR=miu
BUG=393042

Review URL: https://codereview.chromium.org/401213002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284395 0039d316-1c4b-4281-b951-d872f2087c98
parent 42c183dd
......@@ -238,10 +238,21 @@ void CastSessionDelegate::LogRawEvents(
frame_events.begin();
it != frame_events.end();
++it) {
cast_environment_->Logging()->InsertFrameEvent(it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id);
if (it->type == media::cast::FRAME_PLAYOUT) {
cast_environment_->Logging()->InsertFrameEventWithDelay(
it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id,
it->delay_delta);
} else {
cast_environment_->Logging()->InsertFrameEvent(
it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id);
}
}
}
......@@ -104,11 +104,22 @@ void LogTransportEvents(const scoped_refptr<CastEnvironment>& env,
frame_events.begin();
it != frame_events.end();
++it) {
env->Logging()->InsertFrameEvent(it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id);
if (it->type == FRAME_PLAYOUT) {
env->Logging()->InsertFrameEventWithDelay(
it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id,
it->delay_delta);
} else {
env->Logging()->InsertFrameEvent(
it->timestamp,
it->type,
it->media_type,
it->rtp_timestamp,
it->frame_id);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment