我正在使用JSONP来包装JSON响应。适用于Chrome,IE和Safari。
我引用的PHP脚本中的MIMEtype正在发送 内容类型:文本/ HTML
这可能是我发现这个问题的问题
https://groups.google.com/forum/#!topic/jplayer/Bv5fUoXqgew
在这里 http://www.freeenergymedia.com/shared/PLAYER/player/player.html
答案 0 :(得分:0)
改变了这个
$(document).ready(function() {
$.getJSON("http://www.freeenergymedia.com/getxml2.php?callback=?", {},function (json)
{
new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, json, {
swfPath: "js",
supplied: "mp3, ogg",
wmode: "window"
});
})
});
到这个
$(document).ready(function() {
$.getJSON("http://www.freeenergymedia.com/getxml2.php?callback=?", {},function (json)
{
new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, json, {
swfPath: "js",
supplied: "mp3",
wmode: "window"
});
})
});