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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp

Issue 2400293003: Don't show download button for HLS streams (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
index 022370bfdd79ba204e54fd57a969e6312dfd4761..ff3f67e5300d907ff893c8a2cea5c7220890e2ea 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
@@ -673,6 +673,11 @@ bool MediaControlDownloadButtonElement::shouldDisplayDownloadButton() {
if (HTMLMediaSource::lookup(url))
return false;
+ // HLS stream shouldn't have a download button. Keep the same logic as in
+ // media_codec_util.h.
+ if (url.getString().contains("m3u8"))
mlamouri (slow - plz ping) 2016/10/08 09:57:54 Can you make this a static method on HTMLMediaElem
qinmin 2016/10/10 19:17:42 Done. IsHLSURL is more correct compared to IsHLSPa
+ return false;
+
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698