【发布时间】:2013-07-21 13:41:13
【问题描述】:
我有一个问题,我真的不知道发生了什么。我的网站上有超过 1,000 个 MP3 文件。它们在 Google Chrome 中都可以正常播放……但是,MP3 要么在 Firefox 和 IE9 中播放,要么不播放。不过似乎有一些一致性。例如,929.MP3 将在 Firefox 和 IE9 中播放,但 930.mp3 不会在 Firefix 或 IE9 中播放。 929.mp3 和 930.mp3 都可以在 Google Chrome 中播放。
如果我将 MP3 文件转换为 WebM 或 MP4,每个文件都会播放,但由于转换,我会出现不想要的音频质量损失或不想要的更大文件。必须有更好的方法来做到这一点。
{* Begin Audio Add On *}
{assign var="wine"
value="/home/tara/public_html/{$site}/audio/`$row.ID`.mp3"}
{if file_exists($wine)}
<tr><td colspan="2" height="10"></td></tr>
<tr>
<td><p></p></td>
<td>
<audio controls preload="none">
<source src="{$site}/audio/{$row.ID}.mp3" type='audio/mpeg; codecs="mp3"'>
Your browser does not support the audio element.
</audio>
<script>
{literal}
$(function(){
$('audio').panzerlist({theme: 'light'});
});
{/literal}
</script>
</td>
</tr>
{/if}
{* End Audio Add On *}
【问题讨论】:
标签: html firefox audio internet-explorer-9 mp3