2015-08-28 77 views
0

我很新流水游戏使用wowza为了有安全的流媒体。以下是我使用的代码,但视频根本不能播放。我很确定所有文件都正确加载没有任何404或403错误。流水游戏视频不玩

下面是代码:

<html> 
    <head> 
    <title>Wow! This is video</title> 
    <script src="js/flowplayer-3.1.4.min.js"></script> 
    </head> 
    <body> 
    <a href="videos/MyVideo.mp4" 
     style="display:block;width:425px;height:300px;" 
     id="wowza" class="player"> 

    <!-- splash image inside the container --> 
<img src="./flow_eye.jpg" 
    alt="Search engine friendly content" /></a> 

    <script language="JavaScript"> 

     flowplayer("wowza", "swf/flowplayer-3.1.5.swf", { 

      log: { level: 'debug', filter: 'org.flowplayer.rtmp.,org.flowplayer.securestreaming.' }, 

      clip: { 
      url: 'mp4:videos/MyVideo.mp4', 
      // use RTMP streaming 
      provider: 'rtmp', 

      // with a secured connection 
      connectionProvider: 'secure' 
      }, 

      plugins: { 

      // set up the RTMP streaming plugin 
      rtmp: { 
       url: "swf/flowplayer.rtmp-3.2.13.swf", 

       // The net connection URL with HDDN looks like this 
       netConnectionUrl: 'rtmpte://d.securevod.flowplayervod.netdna-cdn.com:1935/securevod.flowplayervod' 
      }, 

      // set up the secure streaming plugin 
      secure: { 
       url: "swf/flowplayer.securestreaming-3.2.9.swf", 

       // the token value (shared secret). 
       token: 'bky9p52t' 
      } 
      } 
     }); 


    </script> 
    </body> 
</html> 

请从您的最终测试,并告诉我还需要在上面的代码中添加什么。

+0

有没有答复? – John

回答

1

您正在使用错误的脚本。

我看到,你正在尝试使用RTMP(Real Time Messaging Protocol)进行实时流。而你只想播放视频。

well incase of flow-player你不需要重新发明轮子。 只需使用任何示例脚本。

Embed Videos in your Web Pages with Flowplayer

+0

我可以为您提供一个简单的示例代码:) –

+0

有一个解决方案来隐藏视频网址。 请查看[主页](https://flowplayer.org/i/flowplayer/setup_configuration) –