Despite all of the malformations, the original code actually worked fine on my Google Chrome, Ubuntu 11.10.<br><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 4:43 PM, Topher <span dir="ltr"><<a href="mailto:topher@codeventure.net">topher@codeventure.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 11/17/2011 04:27 PM, Bob Kline wrote:<br>
> <!DOCTYPE html5><br>
> <body><br>
> <audio controls="controls"><br>
> <source src="kk.mp3" type="audio/mp3" /><br>
> Your browser does not support the audio tag.<br>
> </audio><br>
> </body><br>
> </html5><br>
><br>
><br>
> The file is called xx.html5<br>
<br>
</div>I'm assuming your web server knows how to deal with .html5 files.<br>
<br>
In your code sample above there's no <head></head>, and there's no<br>
<html></html>. This would cause the file to not be valid html, and<br>
could easily make the browser freak out. Here's the proper code:<br>
<br>
<br>
<!DOCTYPE html5><br>
<html><br>
<head><br>
<title>Bob's awesome audio</title><br>
</head><br>
<div class="im"> <body><br>
<audio controls="controls"><br>
<source src="kk.mp3" type="audio/mp3" /><br>
Your browser does not support the audio tag.<br>
</audio><br>
</body><br>
</html><br>
<br>
</div>Indenting is not necessary, I just did it for clarity.<br>
<br>
Keep in mind that Firefox won't play mp3's and I don't think IE will<br>
play ogg. That's why they made it possible, and suggest, that you put<br>
source tags for both audio formats. The browser plays the one it can.<br>
<br>
All that said, you might want to check out <a href="http://mediaelementjs.com/" target="_blank">http://mediaelementjs.com/</a><br>
<br>
It's a small javascript app that detects browsers nicely and makes an<br>
html5 player with the proper file format and falls back to flash when<br>
the browser can't do html5.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br> Ben Rousch<br> <a href="mailto:brousch@gmail.com" target="_blank">brousch@gmail.com</a><br> <a href="http://clusterbleep.net/" target="_blank">http://clusterbleep.net/</a><br>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.