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 24934 - invalid definition for the “seekable” attribute when MediaStream is set to srcObject. When seekable.length is “0”, seekable.start(0) and seekable.end(0) should not return currentTime.
Summary: invalid definition for the “seekable” attribute when MediaStream is set to sr...
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Adam Bergkvist
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 23:01 UTC by Shijun Sun
Modified: 2014-07-03 06:26 UTC (History)
2 users (show)

See Also:


Attachments

Description Shijun Sun 2014-03-04 23:01:00 UTC
There is an invalid definition for the “seekable” attribute when MediaStream is set to srcObject.  When seekable.length is “0”, seekable.start(0) and seekable.end(0) should not return currentTime. 

Propose to change the following in section 6.3

seekable.length MUST return 0.
seekable.start() MUST return currentTime.
seekable.end() MUST return currentTime.

To the following

seekable.length MUST return 0.
seekable.start(0) throws an IndexSizeError exception
seekable.end(0) throws an IndexSizeError exception
Comment 1 Harald Alvestrand 2014-05-14 13:54:19 UTC
seekable.start() is invalid without an argument, so this solution is right.

We can even delete all mention of seekable.start() and seekable.end().
Comment 2 Adam Bergkvist 2014-07-03 06:26:47 UTC
A while back we decided to move the parts related to rendering a MediaStream in a media element to the media element spec, but this is such a small fix so I think it's worth doing anyhow.

Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/bd02a816d35514a8b1ec609ec86233e2f1ad91c3