开发者

Add OGG Theora Vorbis audio support to IX Web Hoting via htaccess file or markup

开发者 https://www.devze.com 2023-02-26 15:08 出处:网络
I\'ve seen a开发者_如何学运维 lot of conflicting information and am not sure how to proceed. I\'d like to add OGG MIME type to an htaccess file to support Firefox HTML5 audio/video from my server. I\'

I've seen a开发者_如何学运维 lot of conflicting information and am not sure how to proceed. I'd like to add OGG MIME type to an htaccess file to support Firefox HTML5 audio/video from my server. I've seen that the file is literally labeled ".htaccess" and that there are a ton of ways of writing the correct MIME type.. What's best? Also, how to install? This is off of an IX Web hosting account.

Here's an example of my HTML5 audio markup.

Thank you!

    <audio id="paparazzi">
        <source src="http://www.minimalpluscreative.com/newclients/dev/PAPARAZZI%20(SNL%20MIX).ogg" type="audio/ogg" />
        <source src="http://www.minimalpluscreative.com/newclients/dev/PAPARAZZI%20(SNL%20MIX).mp3" type="audio/mpeg" />
        Your browser does not support HTML5 audio.
   </audio>


If you're not sure, download the .htaccess from HTML5 Boilerplate and use that. Here's the relevant section (line 77 on):

# audio
AddType audio/ogg oga ogg

# video
AddType video/ogg ogv
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号