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

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

Issue 1415683009: Support earliest seekable time in WMPI. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more androidfixes. Created 5 years, 1 month 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 67c4db6ac6ae10aaacbedb6ff106c748d22ca1d6..ca499e2b49d8ed0194dbe74737130767c417777a 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -1739,6 +1739,14 @@ void HTMLMediaElement::invalidateCachedTime()
}
// playback state
+double HTMLMediaElement::earliestTime() const
+{
+ if (m_readyState == HAVE_NOTHING)
+ return 0;
+
+ return webMediaPlayer()->earliestTime();
+}
+
double HTMLMediaElement::currentTime() const
{
if (m_defaultPlaybackStartPosition)

Powered by Google App Engine
This is Rietveld 408576698