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

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 1560953002: Implement fallback from WMPI to WMPA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 51ba4af1b3cc3fbf820774b6f55e37bba5502a87..f37c423e54208ef549f02fa798c1cda9ce07d433 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -83,6 +83,13 @@ class WebMediaPlayerAndroid : public blink::WebMediaPlayer,
public RenderFrameObserver,
public StreamTextureFactoryContextObserver {
public:
+ // Test whether the path of a URL ends with ".m3u8".
+ static bool IsHLSURL(const GURL& url);
+
+ // Test whether a URL contains "m3u8". (Using exactly the same logic as
+ // NuPlayer does to determine if a stream is HLS.)
+ static bool IsHLSPath(const GURL& url);
+
// Construct a WebMediaPlayerAndroid object. This class communicates with the
// MediaPlayerAndroid object in the browser process through |proxy|.
// TODO(qinmin): |frame| argument is used to determine whether the current

Powered by Google App Engine
This is Rietveld 408576698