56 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+2 more
CreativeZen says

Hey I’m putting a HTML5 audio tag in a “coming soon”-like page, and its not playing on Firefox 3.6. I’ve thought about getting Firefox 4 Beta, but if I’m reading this documentation right, 3.6 should play it. I don’t know if the ogg file is out of wack or what. I can play it through VLC and the m4a file plays fine in Safari.

Can anybody see an error?


<audio autoplay="true" autobuffer="true" loop="true">

        <source src="http://www.dennismars.com/dennismars/music/BuenaVistaSocialClub-GuatequeCampesino.m4a" type="audio/mp4" />

    <source src="http://www.dennismars.com/dennismars/music/BuenaVistaSocialClub-GuatequeCampesino.ogg" type="audio/ogg; codecs=vorbis" />

</audio>

Its all at http://www.dennismars.com/ feel free to check the all the code out. Its doesn’t seem to be this difficult, but its really giving me a hard time.

-cz

3436 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says
Hey I’m putting a HTML5 audio tag in a “coming soon”-like page, and its not playing on Firefox 3.6. I’ve thought about getting Firefox 4 Beta, but if I’m reading this documentation right, 3.6 should play it. I don’t know if the ogg file is out of wack or what. I can play it through VLC and the m4a file plays fine in Safari.

Can anybody see an error?


<audio autoplay="true" autobuffer="true" loop="true">

        <source src="http://www.dennismars.com/dennismars/music/BuenaVistaSocialClub-GuatequeCampesino.m4a" type="audio/mp4" />

    <source src="http://www.dennismars.com/dennismars/music/BuenaVistaSocialClub-GuatequeCampesino.ogg" type="audio/ogg; codecs=vorbis" />

</audio>

Its all at http://www.dennismars.com/ feel free to check the all the code out. Its doesn’t seem to be this difficult, but its really giving me a hard time.

-cz
add
AddType application/ogg .ogg

to your .htaccess file

56 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+2 more
CreativeZen says

@OrganicBeeMedia Didn’t work immediately. Maybe it takes a second? Here’s how my .htaccess file looks now…

<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
AddType application/ogg .ogg
</ifmodule>
3436 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

Take it out of the ifmodule mod_rewrite.c tag

should look like

AddType application/ogg .ogg

<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>
56 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+2 more
CreativeZen says

First of all thanks alot! I made the change and it still didn’t work. But I plugged in a new ogg file and and it worked. It could have been both the file and the .htaccess file, either way I’m just going to put in a different file up. Thanks again.

-cz

56 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+2 more
CreativeZen says

and it works!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by