<div dir="ltr">On Wed, Oct 15, 2008 at 9:44 PM, Ian Hickson <span dir="ltr"><ian@hixie.ch></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
On Tue, 14 Oct 2008, Robert O'Callahan wrote:<br>
> On Tue, Oct 14, 2008 at 12:13 PM, Maciej Stachowiak <<a href="mailto:mjs@apple.com">mjs@apple.com</a>> wrote:<br>
><br>
> > While the underlying media frameworks can't necessarily answer, "if I<br>
> > give you a file with this MIME type, can you play it?", they can at<br>
> > least give a yes/no/maybe answer, which can still be quite helpful,<br>
> > since the UA will know it does not need to check some media streams at<br>
> > all.<br>
><br>
> I agree. If the API lets us answer "maybe", there is not much need or<br>
> temptation to lie, and we can still return information that could be<br>
> useful to scripts.<br>
<br>
</div>I have added window.navigator.canPlayType(mimeType). It returns 1, 0, or<br>
-1 to represent positive, neutral, and negative responses.</blockquote><div><br>navigator.canPlayType could be confusing since authors might think it includes media playable via plugins or other browser functionality. Making it a method on <video>/<audio> would be more obvious and, I think, no less useful in practice.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am proposing changing the spec to make the load() not select a resource.<br>
Instead, load() would immediately return, and the user agent would then<br>
asynchronously try each resource that it might otherwise use in turn,<br>
firing a single loadstart event at the start, lots of progress events, and<br>
then a loadedmetadata or error event depending on how things go.<br>
<div class="Ih2E3d"></div></blockquote><div><br>That sounds good.<br></div></div><br clear="all">Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]<br>
</div>