2015-08-28 119 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) –