<op.v70yofzosr6mfa@kirk>
Current votes: None.
On Fri, 13 Jan 2012 01:53:23 +0100, Aryeh Gregor <ayg@aryeh.name> wrote:=
> On Thu, Jan 12, 2012 at 12:46 PM, Francis Boumphrey
> <boumphreyfr@gmail.com> wrote:
>> e.g. <video src=3D'myvideo.mp4' controls>
>>
>> and my user agent does not support the format, all I get (in my =
>> versions of
>> Opera and Firefox) is a blank screen. No message (as I would get with=
>> <embed>) and as far as I can see there is no way for me as an author =
to
>> know that the video is not being played so I cannot code a 'write =
>> around'.
>
> Boris answered the rest of your questions, but here's a way to detect =
=
> errors:
>
> data:text/html,<!doctype html>
> <video src=3D'nonexistent.mp4' controls onerror=3D'alert("error")'></v=
ideo>
>
> If you use <source>, the error event is fired at the source element
> instead and doesn't bubble (why not?), so you have to put onerror on
> the source element instead.
Or use a capturing event listener.
> I don't know why UAs don't provide their own error messages, though.
> They provide error icons for failed image loads.
I agree that we should do something, but it would be limited to <video =
controls> as <audio> doesn't have a rendering area at all and for <video=
> =
without controls it could interfere with the scripted interface. For =
<audio controls> you could always make the controls look "dead" of cours=
e, =
to make it more clear that there was a problem.
-- =
Philip J=C3=A4genstedt
Core Developer
Opera Software