1

我的自托管 jwplayer 不适用于 ie9,但它适用于 chrome 和 ie 10。你们可以提供的任何帮助将不胜感激。代码如下所示。

    <html>
    <head> 
    <title>HTML 5 RTMP Test</title> 
    <script src="/jwplayer/jwplayer.js"></script>
    <script>jwplayer.key="keycode=="</script>
    </head> 
    <body> 
    <div id="player">
    <a>Loading the player...</a>
    </div>
    <script type="text/javascript">
         jwplayer("player").setup({
         width: "461",
         height: "282",
         primary: "flash",
         autostart: "true",
         sources: [{
                   file: "rtmp://mydomain.com/livewebcast/v1/livestream",
               },{
                   file: "http://mydomain.com/v1/livestream/playlist.m3u8"
             }]
           });
    </script>
    </body> 
    </html>
4

1 回答 1

0

我刚刚使用此代码在本地进行了测试,它可以工作:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML 5 RTMP Test</title> 
<script src="http://www.longtailvideo.com/jwplayer/jwplayer.js"></script>
<script>jwplayer.key="l48FHv8PjETbc5w2agtD9xbH/+6TpnnXHRWRKg=="</script>
</head>
<body>
<div id="player">
<a>Loading the player...</a>
</div>
<script type="text/javascript">
    jwplayer("player").setup({
    width: "650",
    height: "360",
    primary: "flash",
    autostart: "true",
    sources: [{
            file: "rtmp://mywebsite.com:1935/vod/sample.mp4",
        },{
            file: "http://mywebsite.com:1935/tphimvod/mp4:sample.mp4/playlist.m3u8"
        }]
    });
</script>
</body>
</html>
于 2013-05-01T20:52:00.897 回答