Chromium Code Reviews| 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() |
| { |