通过 htaccess 文件或标记向 IX Web Hoting 添加 OGG Theora Vorbis 音频支持
我看到了很多相互矛盾的信息,不知道如何继续。我想将 OGG MIME 类型添加到 htaccess 文件中,以支持服务器上的 Firefox HTML5 音频/视频。我已经看到该文件实际上被标记为“.htaccess”,并且有很多方法可以编写正确的 MIME 类型。什么是最好的?还有,如何安装?这是 IX Web 托管帐户之外的。
这是我的 HTML5 音频标记的示例。
谢谢你!
<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>
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不确定,下载
.htaccess
来自 HTML5 Boilerplate 并使用它。这是相关部分(第 77 行):If you're not sure, download the
.htaccess
from HTML5 Boilerplate and use that. Here's the relevant section (line 77 on):