commit | b2d3efd2ec18ffd52c3dacfece9862366b565a3d | [log] [tgz] |
---|---|---|
author | hubbe <hubbe@chromium.org> | Fri May 05 23:26:38 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri May 05 23:26:38 2017 |
tree | 542c1c6b8c49e62feedc82d3dc416eb468801701 | |
parent | 79e98da1bf1d0e04f66483524c432a7efbaf8ac4 [diff] |
fix canplaythrough This makes canplaythrough follow the spec. It fires when we estimate that we have enough data to play to the end, or when we stop downloading because the buffer is full. We do this by keeping a time series in BufferedDataSourceHostImpl which is used to estimate the download speed over the last 10 seconds. BUG=73609 Review-Url: https://codereview.chromium.org/2796193002 Cr-Commit-Position: refs/heads/master@{#469797}