DescriptionDon't mark a WebMediaPlayer as idle until it has size and first frame.
Slow connections, large MediaSource appends, or open-in-background can
result in large delays from when the WMP is constructed until it reaches
a state appropriate for suspension.
Waiting until we have the first frame and size information to mark a
player as idle should resolve any issues around suspending too early.
BUG=592706
TEST=fixed unittests. Suspend does not occur w/ open-in-background.
Review URL: https://codereview.chromium.org/1796403002
Cr-Commit-Position: refs/heads/master@{#381156}
(cherry picked from commit 8e4dc68fcf8ab6f808e2b819e334098fcfd2f59f)
Committed: https://chromium.googlesource.com/chromium/src/+/4a00b19754bfea0165c3fe027a77d8af1c4e643f
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|