我一直在尝试使用带有后备swf的IE8中的jPlayer加载音频文件。我的音频文件存储在amazon S3中,尝试在javascript中创建播放器时出错。我已经通过在浏览器中访问它来验证我的swf正确加载,并且我的文件链接对于s3是正确的。任何建议或帮助将不胜感激。
错误: jPlayer 2.1.0:id ='jquery_jplayer_0':错误!
无法加载媒体网址。
检查媒体网址是否有效。
代码
$('#jquery_jplayer_0'.toString()).jPlayer({
ready: function () {
$(this).jPlayer('setMedia', {
m4a: audio.fields.link,
oga: audio.fields.link,
mp3: audio.fields.link
});
},
preload: 'none',
swfPath: '/static/js/jplayer/',
cssSelectorAncestor: '#jp_interface_'+i.toString(),
supplied: 'm4a, oga, mp3, all',
solution:"flash, html",
wmode: 'window',
errorAlerts:true,nativeSuport:false
});