Index: media/base/android/media_codec_util.h |
diff --git a/media/base/android/media_codec_util.h b/media/base/android/media_codec_util.h |
index 604ce5d20bb014ff47497b384257dccdc74584f4..3c2d020eea403a7f63b3ca537d8e3ff0c428f41d 100644 |
--- a/media/base/android/media_codec_util.h |
+++ b/media/base/android/media_codec_util.h |
@@ -14,6 +14,8 @@ |
#include "base/macros.h" |
#include "media/base/media_export.h" |
+class GURL; |
+ |
namespace media { |
// Helper macro to skip the test if MediaCodecBridge isn't available. |
@@ -55,6 +57,13 @@ class MEDIA_EXPORT MediaCodecUtil { |
static bool IsKnownUnaccelerated(const std::string& mime_type, |
MediaCodecDirection direction); |
+ // 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); |
+ |
static bool RegisterMediaCodecUtil(JNIEnv* env); |
}; |