2009/7/10 Ian Fette (イアンフェッティ) <span dir="ltr"><<a href="mailto:ifette@google.com">ifette@google.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
To me, this seems like a great test if "canPlayType" actually works in practice. In the perfect world, it would be great to do getElementById('video'), createElement, and then canPlayType('video/whatever','theora').
<div><br></div><div>If this simple use case doesn't work, I would ask if it's even worth keeping canPlayType in the spec.</div>
</blockquote></div><br>var v = document.getElementById("video");<br>if (v.canPlayType && v.canPlayType("video/ogg; codecs=vorbis,theora")) {<br> ...<br>} else {<br> ...<br>}<br><br>should work great. Certainly does in Firefox.<br>
<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>