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 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"
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-23 08:35 UTC by Philip Jägenstedt
Modified: 2012-09-14 12:39 UTC (History)
3 users (show)

See Also:


Attachments

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