Bug 18660 - Run endOfStream("decode") instead of "the media element's error handling code"
Summary: Run endOfStream("decode") instead of "the media element's error handling code"
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
Depends on:
Reported: 2012-08-23 08:35 UTC by Philip Jägenstedt
Modified: 2012-09-14 12:39 UTC (History)
3 users (show)

See Also:


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

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.