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 18622 - endOfStream("decode") when HTMLMediaElement.readyState == HAVE_NOTHING
Summary: endOfStream("decode") when HTMLMediaElement.readyState == HAVE_NOTHING
Status: VERIFIED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Adrian Bateman [MSFT]
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-20 12:48 UTC by Philip Jägenstedt
Modified: 2012-09-14 17:07 UTC (History)
3 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2012-08-20 12:48:20 UTC
http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-endofstream

The MSE spec unconditionally invokes the "If the media data is corrupted" section of the HTML spec. Before readyState has reached HAVE_METADATA, it would be more in line with how e.g. HTTP resources work to invoke "If the media data can be fetched but is found by inspection to be in an unsupported format, or can otherwise not be rendered at all."

At least in Opera, network errors are treated differently depending on readyState, so jumping straight into "If the media data is corrupted" when readyState is HAVE_METADATA would requiring special-casing MSE.
Comment 1 Philip Jägenstedt 2012-08-20 12:51:05 UTC
Oops, I mixed things up, resolving as invalid and trying again...
Comment 2 Philip Jägenstedt 2012-08-20 14:02:57 UTC
Actually, I am doubly confused, there's a problem with both "decode" and "network". The first comment is correct, except for the typo in the second paragraph -- I mean "decoding errors" and not "network errors."

Like in Bug 18624, the behavior should depend on readyState, for consistency with HTTP and other resources.
Comment 3 Aaron Colwell (c) 2012-09-14 01:02:03 UTC
Changes committed.
http://dvcs.w3.org/hg/html-media/rev/349559debcc3
Comment 4 Philip Jägenstedt 2012-09-14 12:30:53 UTC
Looks good, but there are some missing words in "If [the] HTMLMediaElement.readyState attribute [is] greater than HAVE_NOTHING" and similar phrasing.
Comment 5 Aaron Colwell (c) 2012-09-14 17:07:34 UTC
(In reply to comment #4)
> Looks good, but there are some missing words in "If [the]
> HTMLMediaElement.readyState attribute [is] greater than HAVE_NOTHING" and
> similar phrasing.
Oops. These fixes will be in the next set of updates.