Enable background video track optimization for MSE content.

While src= track change still suffer from http://crbug.com/709302,
MSE based track changes work fine. This change enables both pausing
and disable track for MSE content with a keyframe distance < 5s.

The experiment data suggests that in the 95th percentile we might
end up waiting ~980ms when disabling a track before the next video
frame is shown. The 25th percentile is ~66ms, 50th is ~155ms, and
75th is ~325ms.

For pausing, the percentiles results are ~10ms, ~32ms, ~116ms, and
~255ms. These compare favorably with control values.

A later CL will cleanup chrome://flags and switches entries once
we are confident in this release.

Notably this has been launch approved since M58 and experiments have
been running since then at 75% of dev, canary, beta. The discovery
of issue 70302 blocked launch for all playbacks, so this pieces out
the MSE portion which works properly.

BUG=663999,703411
TEST=experiment data looks good.

Change-Id: I07dfebb96d4a2c9147909bb7cdf96fa02469f801
Reviewed-on: https://chromium-review.googlesource.com/576488
Reviewed-by: Anton Vayvod <avayvod@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488017}
2 files changed