Bug 18660 - Run endOfStream("decode") instead of "the media element's error handling code"
Run endOfStream("decode") instead of "the media element's error handling code"
Status: VERIFIED FIXED
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions
unspecified
PC Linux
: P2 normal
: ---
Assigned To: Adrian Bateman [MSFT]
HTML WG Bugzilla archive list
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-23 08:35 UTC by Philip Jägenstedt
Modified: 2012-09-14 12:39 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Jägenstedt 2012-08-23 08:35:41 UTC
http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-append

The phrasing "run the media element's error handling code to signal a MediaError.MEDIA_ERR_DECODE error" is used in a few places.

The intention must be to treat this as a decode error in any other kind of resource, but this doesn't point out the section in HTML that actually does this.

Suggestion: Define that the equivalent of endOfStream("decode") be run.

This will also set readyState to "ended", which seems desirable to cause any further call to append() to fail. Possibly, the call where the decode error is caught should also throw, but a caller could tell that an error occurred by checking readyState, so it's not strictly necessary.
Comment 1 Aaron Colwell (c) 2012-09-14 01:03:00 UTC
Changes committed.
http://dvcs.w3.org/hg/html-media/rev/349559debcc3