Commit bcb00131 authored by Becca Hughes's avatar Becca Hughes Committed by Commit Bot

[Autoplay] Disable autoplay for media stream

Disable autoplay by default for media streams.

BUG=873768

Change-Id: I11f8c3df295ae6ff4f71fce2eb2b3ebf605012a5
Reviewed-on: https://chromium-review.googlesource.com/1204729Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588684}
parent 3751fb7e
...@@ -386,9 +386,6 @@ void AutoplayPolicy::EnsureAutoplayInitiatedSet() { ...@@ -386,9 +386,6 @@ void AutoplayPolicy::EnsureAutoplayInitiatedSet() {
bool AutoplayPolicy::IsGestureNeededForPlaybackIfPendingUserGestureIsLocked() bool AutoplayPolicy::IsGestureNeededForPlaybackIfPendingUserGestureIsLocked()
const { const {
if (element_->GetLoadType() == WebMediaPlayer::kLoadTypeMediaStream)
return false;
// We want to allow muted video to autoplay if: // We want to allow muted video to autoplay if:
// - the flag is enabled; // - the flag is enabled;
// - Data Saver is not enabled; // - Data Saver is not enabled;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment