<div dir="ltr">On Wed, Aug 20, 2008 at 9:53 PM, Henri Sivonen <span dir="ltr"><<a href="mailto:hsivonen@iki.fi">hsivonen@iki.fi</a>></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;">
Do you mean trying to download each video, giving it to GStreaming and seeing if an error code comes back?<br>
</blockquote><br>That might be what we have to do, yes.<br></div><br>But at least that can be done asynchronously. You couldn't implement a synchronous JS query API that way of course.<br><br>Hmm, I suppose you could implement a synchronous API by making a collection of videos, one in each known format, and on startup trying to play them all, and recording which ones were successful. But "ugly" doesn't even begin to describe that solution.<br>
<br>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>