1

我正在使用 JWPlayer 6.8(最新)播放 RTMP 流。

示例页面代码很简单:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>JWPlayer Stream Test</title>

    <script type="text/javascript" src="jwplayer/jwplayer.js"></script>
</head>
<body>
    <div id="canvas"></div>

    <script type="text/javascript">
    jwplayer('canvas').setup({
        file : "stream.smil",
        width : 1024,
        height : 768
    })
    </script>
</body>
</html>

SMIL 清单:

<smil>
  <head>
    <meta base="rtmp://192.168.1.160:1340/live/" />
  </head>
  <body>
    <switch>
      <video src="large" width="1024" height="768" system-bitrate="2000000" />
      <video src="small" width="640" height="480" system-bitrate="800000" />
    </switch>
  </body>
</smil>

这里的一切都很基础,只是为了测试。这适用于 Chrome、Safari、Opera、Firefox,但在 IE11 上失败。尝试在兼容模式下作为IE8,也失败了。

我也尝试过作为file单个流传入:rtmp://192.168.1.160:1340/live/large,这也失败了。

失败的部分非常神秘。

一旦 JW 加载,它的背景是黑色的,带有播放按钮。我单击播放按钮,出现缓冲图标,加载一段时间,背景变为白色,我开始听到流中的音频。大约 1 秒后。音频停止,视频保持白色,没有其他反应。

这些效果都不会出现在其他浏览器上。

这里可能是什么问题?

4

1 回答 1

1

呸,一秒钟太晚了,刚刚在这里找到了答案 - http://support.jwplayer.com/customer/portal/questions/6242868-white-screen-using-ie1-11-windows7

是IE的GPU渲染,必须关闭。

在 JW 播放器的设置配置中设置为解决了该问题stagevideofalse

编辑:

显然,视频无论如何都会在 1 秒后停止。似乎无关。不会再在其他浏览器上发生,提出一个新问题IE 上的 RTMP 流在 ~1 秒后死亡

于 2014-05-08T13:43:58.237 回答