加载JW播放器的Internet Explorer 7问题

时间:2012-08-08 07:52:47

标签: javascript html5 internet-explorer jwplayer

我创建了一个网站并使用JW Player来传输视频。这些视频在Chrome,Firefox和歌剧中表现不错,但视频不能在Internet Explorer 7和Android,iPad和iPhone等移动设备上播放。可能是什么问题呢?我的代码在这里

<script type="text/javascript" charset="utf-8">

    jwplayer("jwplayer-1").setup({
        "flashplayer": "http://url.net/player/player.swf",
        "width": "660",
        "height": "420",
        "controlbar": "bottom",
        "dock": "false",
        "autostart": "false",
        "icons": "true",
        "playlist.position": "none",
        "playlistsize": "180",
        "repeat": "none",
        "shuffle": "false",
        "bufferlength": "1",
        "smoothing": "true",
        "stretching": "uniform",
        "wmode": "opaque",
        "mute": "false",
        "volume": "90",
        "plugins": "adtimage",
        "adtimage.graphic": "http://url.net/default_ad.png",
        "adtimage.link": "mailto:mail@gmail.com",
        "adtimage.positions": "pre,post",
        "adtimage.onpause": "true",
        "adtimage.txt": "Advertisement",
        "adtimage.btntxt": "Click to continue with video",
        "file": "http://url.net/music/private/File.flv",
        "image": "http://url.net/thumb.jpg",
        "provider": "video",
        "modes": [{
            "type": "html5",
            "config": {
                "streamer": "",
                "provider": "",
                "file": "private/File.flv"
            }
        }, {
            "type": "flash",
            "src": "http://url.net/player/player.swf"
        }, {
            "type": "download",
            "config": {
                "streamer": "",
                "provider": ""
            }
        }]
    });

</script> 

显示的错误就是这个 FLV à onMetaData duration@k“ =p£×width@”height@†€ videodatarate@±” framerate@7ùÜ videocodecid@ audiodatarate@以及其他一些我不理解的内容

2 个答案:

答案 0 :(得分:1)

charset属性仅适用于外部脚本(只有在存在src属性时才能使用) 我希望它有用,D

答案 1 :(得分:0)

我更新了您的代码并删除了您的私人网址。

我还补充说:

<script type="text/javascript" charset="utf-8">

现在尝试这样做:

<meta charset="UTF-8"/>

并尝试完全定义(px)

"width": "660px",
"height": "420px",