Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2047333002: Pause autoplay muted video when unmuting if there's no user gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay-flag
Patch Set: Fixed accidental ws change Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index 7d4911c9ba09a966e826290e4a33b64ac047b271..08996bf1aaab6c4778221378800f71f15d426dfb 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -466,7 +466,7 @@ private:
// if isLockedPendingUserGesture() return true, this might return false if
// the requirement is currently overridden. This does not check if a user
// gesture is currently being processed.
- bool isGestureNeededForPlayback() const;
+ bool isGestureNeededForPlayback();
void setNetworkState(NetworkState);
@@ -582,6 +582,9 @@ private:
// Whether this element is in overlay fullscreen mode.
bool m_inOverlayFullscreenVideo : 1;
+ // Whether this element is autoplaying due to being muted.
+ bool m_isAutoplayingMuted : 1;
+
Member<AudioTrackList> m_audioTracks;
Member<VideoTrackList> m_videoTracks;
Member<TextTrackList> m_textTracks;

Powered by Google App Engine
This is Rietveld 408576698