This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27296 - [MSE] HTMLMediaElement.seekable when duration equals Infinity but buffered is empty
Summary: [MSE] HTMLMediaElement.seekable when duration equals Infinity but buffered is...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: CR
Assignee: Aaron Colwell
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-11 10:33 UTC by Henrik Steen
Modified: 2014-11-11 17:10 UTC (History)
5 users (show)

See Also:


Attachments

Description Henrik Steen 2014-11-11 10:33:36 UTC
Spawned from: https://codereview.chromium.org/710173004/diff/1/Source/modules/mediasource/MediaSource.cpp#newcode378

"If duration equals positive Infinity
Return a single range with a start time of 0 and an end time equal to the highest end time reported by the HTMLMediaElement.buffered attribute."

But what should be returned if the duration equals positive Infinity but nothing is yet buffered?  Should seekable be empty as well, or should it return a range of (0, 0]?

Previous discussion: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18666
Comment 1 Henrik Steen 2014-11-11 10:38:09 UTC
As you can see from the Chromium review, I would opt for seekable being empty in this case, but the spec is a bit vague about what should actually be return.
Comment 2 Aaron Colwell 2014-11-11 17:10:53 UTC
Change committed...
https://dvcs.w3.org/hg/html-media/rev/9d9e8d48c852

Updated algorithm to return an empty range if .buffered is empty and .duration equals Infinity.