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

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

Issue 562493003: Allow seeks to zero on streaming sources. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add tests. Created 6 years, 3 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
« no previous file with comments | « LayoutTests/http/tests/media/resources/serve-video.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 70b17b45a3cd8bb61e5e51cae5f61c58b2e6c2eb..6fd115bbb6ab13eae2829664beb01a1e4800a161 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3292,7 +3292,7 @@ PassRefPtrWillBeRawPtr<TimeRanges> HTMLMediaElement::seekable() const
{
if (webMediaPlayer()) {
double maxTimeSeekable = webMediaPlayer()->maxTimeSeekable();
- if (maxTimeSeekable)
+ if (maxTimeSeekable || duration() != std::numeric_limits<double>::infinity())
return TimeRanges::create(0, maxTimeSeekable);
}
return TimeRanges::create();
« no previous file with comments | « LayoutTests/http/tests/media/resources/serve-video.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698