W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2011

[Bug 14186] Proposed additional information for <video> Error events

From: <bugzilla@jessica.w3.org>
Date: Mon, 19 Sep 2011 21:08:47 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1R5l55-0007NT-Ky@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14186

--- Comment #1 from Offbeatmammal <offbeatmammal@gmail.com> 2011-09-19 21:08:46 UTC ---
additional clarification on suggested implementation.

In the current spec when an error occurs it raises an error event and populates
the MediaError code with a value (currently in the range 1..4) -
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediaerror

what is proposed is that in addition to the MediaError (so as to maintain
backwards compatibility) if the error condition is the result of an
httpresponse that code is also made available.

no matter when the error is raised this code should be provided (so if the
asset does not exist on opening then the error.httpresponse would show a 404
but the same would happen if the asset became unavailable during the playback
experience)

developers may wish to take different actions based on different network
conditions (a 404 or 500 response might require a different action to a 403)
and this would also help (possibly) lay the groundwork for error handling in a
DRM framework

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 19 September 2011 21:08:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:19 UTC