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

Unified Diff: media/base/android/media_player_bridge.cc

Issue 496683002: Updating buffered duration of local resource in android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 6 years, 4 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/media/android/webmediaplayer_android.cc ('k') | url/gurl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_player_bridge.cc
diff --git a/media/base/android/media_player_bridge.cc b/media/base/android/media_player_bridge.cc
index b9832826818b8021e58992753ec494c0cd807a57..dbc4eaa526c116eaed20bd17d5a8f8ef9a792467 100644
--- a/media/base/android/media_player_bridge.cc
+++ b/media/base/android/media_player_bridge.cc
@@ -21,9 +21,6 @@ using base::android::ScopedJavaLocalRef;
// Time update happens every 250ms.
const int kTimeUpdateInterval = 250;
-// blob url scheme.
-const char kBlobScheme[] = "blob";
-
namespace media {
MediaPlayerBridge::MediaPlayerBridge(
@@ -79,7 +76,7 @@ void MediaPlayerBridge::Initialize() {
media::MediaResourceGetter* resource_getter =
manager()->GetMediaResourceGetter();
- if (url_.SchemeIsFileSystem() || url_.SchemeIs(kBlobScheme)) {
+ if (url_.SchemeIsFileSystem() || url_.SchemeIsBlob()) {
resource_getter->GetPlatformPathFromURL(
url_,
base::Bind(&MediaPlayerBridge::ExtractMediaMetadata,
@@ -156,7 +153,7 @@ void MediaPlayerBridge::SetVideoSurface(gfx::ScopedJavaSurface surface) {
void MediaPlayerBridge::Prepare() {
DCHECK(j_media_player_bridge_.is_null());
CreateJavaMediaPlayerBridge();
- if (url_.SchemeIsFileSystem() || url_.SchemeIs(kBlobScheme)) {
+ if (url_.SchemeIsFileSystem() || url_.SchemeIsBlob()) {
manager()->GetMediaResourceGetter()->GetPlatformPathFromURL(
url_,
base::Bind(&MediaPlayerBridge::SetDataSource,
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | url/gurl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698