DescriptionFix autoplay during prerendering for media elements on Android.
If the user gesture for autoplay is disabled manually or via an
experiment, prerendered media will play in a hidden frame.
Within WebMediaPlayerImpl this behavior is deferred at load time
via a callback, however WebMediaPlayerAndroid was never given
this callback, so it would try to play media. Generally this
fails because by default autoplay requires a user gesture.
The correct fix is to refactor WMPA such that it uses a params
structure like WMPI and can invoke the deferral callback when
load() is called.
BUG=522157
TEST=clank no longer plays hidden a/v when user gesture disabled.
Committed: https://crrev.com/98fc72cda10bf328ad55e460f6a7b06a356d5b3d
Cr-Commit-Position: refs/heads/master@{#344676}
Patch Set 1 #
Total comments: 11
Patch Set 2 : Comments. #
Total comments: 2
Patch Set 3 : Comments. #Patch Set 4 : Rebase. #Patch Set 5 : Rename test class. #
Messages
Total messages: 28 (10 generated)
|