2013-09-21 46 views
0

我有這樣的代碼從AWS使用的Flowplayer

 $f('.rtmp', 'http://dmjae0nvian3n.cloudfront.net/flowplayer-3.2.16.swf', { 
      clip: { 
       provider: 'rtmp' 
      }, 

      plugins: { 
       rtmp: { 
        url: '@Url.Content("~/Content/swf/AkamaiFlowPlugin.swf")', 

        netConnectionUrl: 'rtmp://sh6xkdarh1a51.cloudfront.net/cfx/st' 
       } 
      } 
     }); 

HTML

<div class="rtmp" href="mp4:Delicious_Vinyl"/> 

這工作得很好,以流從Rackspace的流。現在我正在嘗試從rackspace執行相同的文件。我所做的只是改變netConnectionUrl。兩個文件名都相同。

Rackspace公司網址

8abb0c8bf43b4e6ae1d1-1bec6be0e9b91559fcee217d2d0b0f03.r99.stream.cf1.rackcdn.com 

編輯

我得到一個403 Forbidden錯誤

回答

0

下面是JavaScript代碼。我仍然在AWS上託管swk文件我試圖讓它在本地時遇到域錯誤

var jp = $f 
     (
      "player_container", 

      { 
       src: "http://dmjae0nvian3n.cloudfront.net/flowplayer-3.2.16.swf", 
       wmode: 'transparent' 
      }, 
      { 
       debug: true, 
       log: 'warn', 
       clip: 
       { 
        live: false, 
        provider: 'akamai', 
        autoPlay: false, 
        stopLiveOnPause: false 
       }, 
       playlist: 
       [ 
        'http://8abb0c8bf43b4e6ae1d1-1bec6be0e9b91559fcee217d2d0b0f03.r99.stream.cf1.rackcdn.com/Delicious_Vinyl.mp4' 
       ], 
       plugins: 
       { 
        //controls: controlObject, 
        akamai: 
        { 
         url: 'http://players.edgesuite.net/flash/plugins/flow/v3.1.1/AkamaiFlowPlugin.swf' 
        } 
       } 
      } 
     );