IE9中的JW Player无法加载和播放MP3文件

| 这很简单,我有一个链接列表,如果用户单击一个链接,则div会加载一些内容(jwplayer占位符和歌曲标题),并且jwplayer应该启动。这是我的JavaScript(jquery和jquery-swfobject):
$(function() {
    $(\'.song a\').live(\'click\', function() {
        var title = $(this).find(\'span.title\').text();
        var file = $(this).attr(\'href\');
        $.ajax({
            type: \'POST\',
            url: $(\'.songlocation\').html(),
            data: \'name=\' + title + \'&file=\' + file,
            success: function(html) {
                $(\'.songplayer\').attr(\'title\', title);
                $(\'.songplayer\').html(html);
            },
            complete: function(request, status) {
                $(\'#mediaspace\').flash({
                    swf: $(\'.flashlocation\').html(),
                    allowfullscreen: true,
                    allowscriptaccess: \'always\',
                    wmode: \'opaque\',
                    width: 238,
                    height: 24,
                    flashvars:
                        {
                            file: file,
                            autostart: true
                        }
                });

                if ($(\'#mediaspace\').text().indexOf(\"Flash is disabled\") == -1) {
                    $(\'.songplayer\').show();
                } else {
                    document.location = file;
                }
            }
        });
        return false;
    });
});
$(\'。songlocation \')包含/ Home / SongPlayer / Home / SongPlayer包含:
<div id=\"mediaspace\">
    Flash is disabled
</div>

<div id=\"name\">
    Song Title
</div>

<a href=\"http://url/to.mp3\" class=\"download\">Download MP3 &gt;&gt;</a>
在Opera / Firefox / Chrome / IE7 / IE8中可以正常工作,但在IE9中则不能 jwplayer可以很好地加载,但不能加载歌曲。因此,永远不会在IE9中调用MP3文件     
已邀请:
看来问题出在jquery-swfobject插件。我已将swfobject的jquery版本(旧版本)替换为swfobject 2.0,现在可以正常使用了。     

要回复问题请先登录注册