我想让jPlayer在一个rails应用程序中使用flash后备,至今没有运气!我的构造函数现在看起来是这样的:jPlayer + Rails 3.1.3 swfPath?
$("#jquery_jplayer_1").jPlayer({
preload: "auto",
errorAlerts: true,
swfPath: "javascripts",
solution: "flash, html",
supplied: "oga",
wmode: "window",
ended: function(e) {
...some function...
}
});
我不能得到纠正swfPath看来,我必须在这里失去了一些关于jPlayer是如何寻找这条道路。我的其他资产(如样式表中的图像)似乎已正确路由到资产文件夹/ images文件夹。我似乎无法找到让jPlayer找到Jplayer.swf的魔法组合。我曾尝试将swf文件放在公用文件夹中,公用文件夹内的文件夹中,资产文件夹中以及assets文件夹中的javascripts文件夹中。没有运气!有没有人处理过这个问题?