[go: nahoru, domu]

Move underflow threshold limits out of the video renderer.

The threshold logic is incorrect when there's no audio track, which
the VideoRendererImpl has no knowledge of, so this logic needs to
live in the RendererImpl.

As a consequence of this, the underflow threshold is now based on
wall clock time instead of media time; which means non-realtime
playback will allow more or less media time to elapse before
underflow occurs.

Exposes a new command line flag --video-underflow-threshold-ms to
allow for experiments varying the threshold for YouTube.

BUG=423801, 470940
TEST=new unittests.

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

Cr-Commit-Position: refs/heads/master@{#323599}
9 files changed