Index: media/blink/webmediaplayer_impl.cc |
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc |
index 0176405e0f5ca22f2bfa672253a4f84f6e533daa..b074f400e7f539945740d2a514680b25274a0532 100644 |
--- a/media/blink/webmediaplayer_impl.cc |
+++ b/media/blink/webmediaplayer_impl.cc |
@@ -48,6 +48,7 @@ |
#include "media/filters/chunk_demuxer.h" |
#include "media/filters/ffmpeg_demuxer.h" |
#include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.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/WebMediaSource.h" |
@@ -259,8 +260,12 @@ WebMediaPlayerImpl::~WebMediaPlayerImpl() { |
media_log_->CreateEvent(MediaLogEvent::WEBMEDIAPLAYER_DESTROYED)); |
} |
-void WebMediaPlayerImpl::load(LoadType load_type, const blink::WebURL& url, |
+void WebMediaPlayerImpl::load(LoadType load_type, |
+ const blink::WebMediaElementSource& source, |
CORSMode cors_mode) { |
+ // Only URL or MSE blob URL is supported. |
+ DCHECK(source.isURL()); |
+ blink::WebURL url = source.getAsURL(); |
DVLOG(1) << __FUNCTION__ << "(" << load_type << ", " << url << ", " |
<< cors_mode << ")"; |
if (!defer_load_cb_.is_null()) { |