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

Unified Diff: media/base/android/media_codec_util.h

Issue 1560953002: Implement fallback from WMPI to WMPA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only include MediaCodecUtil on Android. 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | media/base/android/media_codec_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698