你能否建议我一个可以在互联网资源管理器9中顺利运行的mp3 jplayer链接?我找到了一个但它在IE 9中不起作用并给出了以下错误信息。
错误: -
Jplayer 2.1.0:id='jquery_jplayer_1':Error!
Media URL could not be loaded.
Check media URL is valid.
Context:Address of mp3 file that is placed remotely.
这是我的代码: -
</script>
<script type="text/javascript">
function loadmedia() {
$('#jquery_jplayer_1').jPlayer('setMedia', {
mp3: 'http://lecion.blob.core.windows.net/sixty-vocab-files//UploadSound/7fd752a6-97ef-4a99-b324-a160295b8ac4/43/Kalimba.mp3'
});
}
$(document).ready(function () {
$('#jquery_jplayer_1').jPlayer({
ready: loadmedia,
swfPath: 'Jplayer.swf',
//solution: 'flash,html',
errorAlerts: true,
supplied: 'mp3',
// wmode: 'window'
});
});
</script>
<script src="jquery.jplayer.min.js" type="text/javascript" ></script>
我会感激你的。
答案 0 :(得分:1)
如何使用HTML5音频标签?
<audio controls="controls">
<source src="song.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
请参阅W3Schools了解更多信息