Index: content/renderer/media/android/webmediaplayer_android.cc |
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc |
index ef9ddf1049ce92626fb47ace797fe210b803598d..3e00ab76750cb2c18ca55f43b556ff44d46d0b91 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.cc |
+++ b/content/renderer/media/android/webmediaplayer_android.cc |
@@ -55,6 +55,7 @@ |
#include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
#include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h" |
#include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" |
+#include "third_party/WebKit/public/platform/WebMediaElementSource.h" |
#include "third_party/WebKit/public/platform/WebMediaPlayerClient.h" |
#include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.h" |
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
@@ -298,8 +299,11 @@ WebMediaPlayerAndroid::~WebMediaPlayerAndroid() { |
} |
void WebMediaPlayerAndroid::load(LoadType load_type, |
- const blink::WebURL& url, |
+ const blink::WebMediaElementSource& source, |
CORSMode cors_mode) { |
+ // Only URL or MSE blob URL is supported. |
+ DCHECK(source.isURL()); |
+ blink::WebURL url = source.getAsURL(); |
if (!defer_load_cb_.is_null()) { |
defer_load_cb_.Run(base::Bind(&WebMediaPlayerAndroid::DoLoad, |
weak_factory_.GetWeakPtr(), load_type, url, |