mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
Always use MediaSource seekable range regardless of readyState
If the liveSeekable attribute is set, then the seekable attribute must return the liveseekable range. https://w3c.github.io/media-source/index.html#htmlmediaelement-extensions
This commit is contained in:
@@ -1598,7 +1598,8 @@ already_AddRefed<TimeRanges>
|
||||
HTMLMediaElement::Seekable() const
|
||||
{
|
||||
nsRefPtr<TimeRanges> ranges = new TimeRanges();
|
||||
if (mDecoder && mReadyState > nsIDOMHTMLMediaElement::HAVE_NOTHING) {
|
||||
if (mMediaSource ||
|
||||
(mDecoder && mReadyState > nsIDOMHTMLMediaElement::HAVE_NOTHING)) {
|
||||
mDecoder->GetSeekable().ToTimeRanges(ranges);
|
||||
}
|
||||
return ranges.forget();
|
||||
|
||||
Reference in New Issue
Block a user