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

Issue 562653004: Cast: First stab at implementing adaptive latency (Closed)

Created:
6 years, 3 months ago by hubbe
Modified:
6 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, extensions-reviews_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, chromium-apps-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cast: First stab at implementing adaptive latency After a bunch of testing, it seems like there is a direct linear relationship between RTT and the optimal playout delay. Packet loss is also a factor, but since we expect packet loss to be low in normal networks, perhaps we can make the formula as easy as RTT * 4. This is disabled by default, the extension needs to set min_latency_ms in order to activate it. BUG=405339 Committed: https://crrev.com/a7dbb823c2d7d5cfc7e310aca7acd6efd8e4a009 Cr-Commit-Position: refs/heads/master@{#294655}

Patch Set 1 #

Total comments: 4

Patch Set 2 : forgot to update storage #

Patch Set 3 : change rtt window to ~10 minutes #

Total comments: 2

Patch Set 4 : all tests pass #

Patch Set 5 : minor changes after more manual testing #

Total comments: 2

Patch Set 6 : refine formula, add comments #

Total comments: 2

Patch Set 7 : comment fixed #

Total comments: 2

Patch Set 8 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -42 lines) Patch
M chrome/common/extensions/api/cast_streaming_rtp_stream.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/cast_streaming_native_handler.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_rtp_stream.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_rtp_stream.cc View 3 chunks +19 lines, -4 lines 0 comments Download
M media/cast/cast_config.h View 2 chunks +8 lines, -6 lines 0 comments Download
M media/cast/cast_config.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/cast_sender_impl.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/cast/sender/audio_sender.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M media/cast/sender/frame_sender.h View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M media/cast/sender/frame_sender.cc View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M media/cast/sender/video_sender.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M media/cast/sender/video_sender.cc View 1 2 3 4 5 6 5 chunks +28 lines, -3 lines 0 comments Download
M media/cast/sender/video_sender_unittest.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M media/cast/test/cast_benchmarks.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 chunks +10 lines, -4 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/test/simulator.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M media/cast/test/utility/default_config.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
hubbe
6 years, 3 months ago (2014-09-10 19:39:30 UTC) #2
miu
Drive by! :) https://codereview.chromium.org/562653004/diff/1/media/cast/sender/frame_sender.cc File media/cast/sender/frame_sender.cc (right): https://codereview.chromium.org/562653004/diff/1/media/cast/sender/frame_sender.cc#newcode15 media/cast/sender/frame_sender.cc:15: const size_t kRTTWindow = 8192; This ...
6 years, 3 months ago (2014-09-10 19:50:08 UTC) #4
hubbe
https://codereview.chromium.org/562653004/diff/1/media/cast/sender/frame_sender.cc File media/cast/sender/frame_sender.cc (right): https://codereview.chromium.org/562653004/diff/1/media/cast/sender/frame_sender.cc#newcode15 media/cast/sender/frame_sender.cc:15: const size_t kRTTWindow = 8192; On 2014/09/10 19:50:08, miu ...
6 years, 3 months ago (2014-09-10 20:40:47 UTC) #5
Alpha Left Google
https://codereview.chromium.org/562653004/diff/40001/media/cast/sender/video_sender.cc File media/cast/sender/video_sender.cc (right): https://codereview.chromium.org/562653004/diff/40001/media/cast/sender/video_sender.cc#newcode22 media/cast/sender/video_sender.cc:22: const int kRoundTripsNeeded = 4; nit: This constant needs ...
6 years, 3 months ago (2014-09-11 01:24:26 UTC) #6
hubbe
https://codereview.chromium.org/562653004/diff/40001/media/cast/sender/video_sender.cc File media/cast/sender/video_sender.cc (right): https://codereview.chromium.org/562653004/diff/40001/media/cast/sender/video_sender.cc#newcode22 media/cast/sender/video_sender.cc:22: const int kRoundTripsNeeded = 4; On 2014/09/11 01:24:26, Alpha ...
6 years, 3 months ago (2014-09-11 19:17:19 UTC) #7
Alpha Left Google
Please fix the comment. Then LGTM. We should discuss how to roll this out to ...
6 years, 3 months ago (2014-09-11 20:33:44 UTC) #8
hubbe
https://codereview.chromium.org/562653004/diff/100001/media/cast/sender/video_sender.cc File media/cast/sender/video_sender.cc (right): https://codereview.chromium.org/562653004/diff/100001/media/cast/sender/video_sender.cc#newcode28 media/cast/sender/video_sender.cc:28: // This is an estimate of all the the ...
6 years, 3 months ago (2014-09-11 20:47:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562653004/120001
6 years, 3 months ago (2014-09-12 00:14:58 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10501)
6 years, 3 months ago (2014-09-12 01:04:21 UTC) #13
hubbe
+yoz for extensions approval
6 years, 3 months ago (2014-09-12 17:47:19 UTC) #15
Yoyo Zhou
LGTM for extensions https://codereview.chromium.org/562653004/diff/120001/chrome/renderer/media/cast_rtp_stream.h File chrome/renderer/media/cast_rtp_stream.h (right): https://codereview.chromium.org/562653004/diff/120001/chrome/renderer/media/cast_rtp_stream.h#newcode45 chrome/renderer/media/cast_rtp_stream.h:45: // Minimum latency. Comment on default ...
6 years, 3 months ago (2014-09-12 18:32:42 UTC) #16
hubbe
https://codereview.chromium.org/562653004/diff/120001/chrome/renderer/media/cast_rtp_stream.h File chrome/renderer/media/cast_rtp_stream.h (right): https://codereview.chromium.org/562653004/diff/120001/chrome/renderer/media/cast_rtp_stream.h#newcode45 chrome/renderer/media/cast_rtp_stream.h:45: // Minimum latency. On 2014/09/12 18:32:42, Yoyo Zhou wrote: ...
6 years, 3 months ago (2014-09-12 18:41:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/562653004/140001
6 years, 3 months ago (2014-09-12 19:55:54 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001) as a8d9f5fc01f5f3e55e54465bc52588ecfaed9c34
6 years, 3 months ago (2014-09-12 20:56:22 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 21:00:38 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a7dbb823c2d7d5cfc7e310aca7acd6efd8e4a009
Cr-Commit-Position: refs/heads/master@{#294655}

Powered by Google App Engine
This is Rietveld 408576698