Chromium Code Reviews
DescriptionStart recording background video watch time.
YouTube data suggests background video watch time is significant, so start
counting this within a new set of Media.AudioVideo.Background buckets.
Background collection is done by creating an internal WatchTimeReporter
that is played/paused when hidden/shown occur. This allows us to keep
the logic for reporting watch time simple.
This change also cleans up how watch time metrics are stored inside the
MediaInternals class as the number of histograms continues to grow. We
were lacking tests for this portion of watch time reporting, so those
have been added as well.
There are a couple of minor fixes to the WatchTimeReporter which should
only affect tests, but may result in small watch time increases as samples
are recorded earlier than previously (i.e. at player destruction versus
process destruction).
BUG=none
TEST=new tests.
Review-Url: https://codereview.chromium.org/2780533004
Cr-Commit-Position: refs/heads/master@{#461321}
Committed: https://chromium.googlesource.com/chromium/src/+/c45b1c4ef18fa397013d1109dd9abe1f01543b3c
Patch Set 1 : Add moar tests. #
Total comments: 4
Patch Set 2 : Add moar tests. #Patch Set 3 : Fix copy-init issues. #
Messages
Total messages: 22 (14 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||