【问题标题】:MP3 either plays or fails to play in IE9 and Firefox HTML5MP3 在 IE9 和 Firefox HTML5 中播放或无法播放
【发布时间】: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


    【解决方案1】:

    根据 Firefox 和 IE9,MP3 文件已“损坏”。

    当然,没有办法判断文件是否真的“损坏”,因为它在 Chrome 中可以正常播放。

    【讨论】:

      猜你喜欢
      • 2013-01-04
      • 2012-04-01
      • 1970-01-01
      • 2011-10-20
      • 1970-01-01
      • 1970-01-01
      • 2013-03-17
      • 2015-02-16
      • 1970-01-01
      相关资源
      最近更新 更多