DescriptionDefer media playback in background tabs.
Videos which autoplay in the background will now have their load
deferred until the tab is visible for the first time -- this avoids
autoplay during session restore and premature playback.
Once a tab / RenderFrame has ever played media before, it's allowed
to continue to autoplay/autoload indefinitely; this is to support
playlist type applications.
BUG=509135
TEST=manual verification that background tabs don't autoplay;
playlist type media continues to work.
Committed: https://crrev.com/0f9e7f4c43221c205982328021138a7ea54261ef
Cr-Commit-Position: refs/heads/master@{#344092}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add sticky playback bit. #
Total comments: 5
Patch Set 3 : Remove prerender loader. #Patch Set 4 : Add test. #
Total comments: 11
Patch Set 5 : Fix build.gn #
Total comments: 4
Patch Set 6 : Comments. #Dependent Patchsets: Messages
Total messages: 47 (11 generated)
|