Index: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp |
diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp |
index 1524d7590cf2cc49c53499c868c9c80d133c1571..d89ad4d269aa07bf131ba30542080473e08b4d03 100644 |
--- a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp |
+++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp |
@@ -534,7 +534,9 @@ void MediaControlsImpl::MakeTransparent() { |
bool MediaControlsImpl::ShouldHideMediaControls(unsigned behavior_flags) const { |
// Never hide for a media element without visual representation. |
if (!MediaElement().IsHTMLVideoElement() || !MediaElement().HasVideo() || |
- MediaElement().IsPlayingRemotely()) { |
+ MediaElement().IsPlayingRemotely() || |
+ toHTMLVideoElement(MediaElement()).GetMediaRemotingStatus() == |
+ HTMLVideoElement::MediaRemotingStatus::Started) { |
return false; |
} |