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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2046253002: When HLS redirects are encountered recreate WebMediaPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicit option. Created 4 years, 6 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
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 76a40bcf2f7241d937a90b544ee2a342e96c99ce..e07238514f001703483a79c379b67cb4a9adf05e 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -2991,6 +2991,15 @@ void HTMLMediaElement::cancelledRemotePlaybackRequest()
remotePlaybackClient()->connectCancelled();
}
+void HTMLMediaElement::requestReload(const WebURL& newUrl)
+{
+ DCHECK(webMediaPlayer());
+ DCHECK(!m_srcObject);
+ resetMediaPlayerAndMediaSource();
+ ContentType contentType((String()));
+ loadResource(WebMediaPlayerSource(newUrl), contentType);
foolip 2016/06/22 13:10:54 This will still have the problems with changing m_
DaleCurtis 2016/06/22 14:28:35 I'm not sure I follow the differences from what's
foolip 2016/06/22 16:01:52 Yeah, I'm suggesting to make the order more like t
DaleCurtis 2016/06/22 16:17:41 StartPlayerLoad() also uses m_currentSrc though, s
foolip 2016/06/22 18:00:49 Oh, that's a problem. It's a bit silly that loadRe
DaleCurtis 2016/06/22 23:16:14 I started going down this path and it quickly esca
+}
+
// MediaPlayerPresentation methods
void HTMLMediaElement::repaint()
{

Powered by Google App Engine
This is Rietveld 408576698