正如 Aristos 评论的那样,您可以将 Flash 播放器用作 flowplayer
<a id="mb" style="display:block;width:648px;height:30px;"
href="/media/data/fake_empire.mp3"></a>
<script>
$f("mb", "http://releases.flowplayer.org/swf/flowplayer-3.2.15.swf", {
// fullscreen button not needed here
plugins: {
controls: {
fullscreen: false,
height: 30,
autoHide: false
}
},
clip: {
autoPlay: false,
// optional: when playback starts close the first audio playback
onBeforeBegin: function() {
$f("player").close();
}
}
});
</script>
(http://flash.flowplayer.org/plugins/streaming/audio.html)
音频标签仅适用于“新”浏览器
...
<audio src="http://xxxx/xxxx/xxx.mp3" autoplay="autoplay" />
...
如果不是,您将不得不通过 javascript 检查正在运行的浏览器并做出相应的反应