[WebLayer] Defer media load if page isn't visible.
If the page is being invisible, we now defer media playback in the background. I've moved this logic to a shared location so Chrome and WebLayer can reuse it and stay in sync. Bug: 1096088 Change-Id: I61465da4717d28ff8e9f6f83fd2a75fe79fc44ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352819 Commit-Queue: Mugdha Lakhani <nator@chromium.org> Reviewed-by:John Abd-El-Malek <jam@chromium.org> Reviewed-by:
Ryan Sturm <ryansturm@chromium.org> Cr-Commit-Position: refs/heads/master@{#798072}
Showing
Please register or sign in to comment