0

我使用 flowplayer 播放 mp3。但我有一个错误;

202 此剪辑中指定的提供程序未加载,提供程序 audio.clip: [clip]

我没有它,错误是以前使用过的。

<script src='<%= ResolveUrl("~/Components/flowplayer/flowplayer-3.1.1.min.js") %>' type="text/javascript"></script>
<script>
var playerpath = '<%= ResolveUrl("~/Components/flowplayer/flowplayer-3.2.7.swf") %>';
var playerid = '<%= this.lnkPlayer.ClientID %>';
var _autoplay = '<%= this.AutoPlay %>' == "True";
var _autobuffering = '<%= this.AutoBuffering %>' == "True";
flowplayer(playerid, playerpath, {
    clip: {
        autoPlay: _autoplay,
        autoBuffering: _autobuffering  
        ,provider: '<%= provider %>'
    },
    plugins: {
        rtmp: {
            url: '<%= ResolveUrl("~/Components/flowplayer/flowplayer.rtmp-3.2.3.swf")%>'
        }
    }
}); 

你知道吗?感谢你。

4

1 回答 1

0

对于其他人,如有必要,解决方案是;

   <script src='<%= ResolveUrl("~/Components/flowplayer/flowplayer-3.1.1.min.js") %>' type="text/javascript"></script>
   <asp:HyperLink runat="server"  ID="lnkPlayer"></asp:HyperLink>

<script>
   var playerid = '<%= this.lnkPlayer.ClientID %>';
   var _autoplay = '<%= this.AutoPlay %>' == "True";
   var _autobuffering = '<%= this.AutoBuffering %>' == "True";
 flowplayer(playerid, {
   src: "http://releases.flowplayer.org/swf/*flowplayer-3.2.15.swf",
   version: [10, 1],
    clip: {
      autoPlay: _autoplay,
      autoBuffering: _autobuffering  // <- do not place a comma here   
      , provider: 'rtmp'
          },
    plugins: {
         rtmp: {
             url: '<%= ResolveUrl("~/Components/flowplayer/flowplayer.rtmp-3.2.11.swf") %>'
                }
             }
    });
  </script>

对于 flowplayer-3.1.1.min.js -> http://releases.flowplayer.org/flowplayer/flowplayer-3.2.15.zip 对于 flowplayer.rtmp-3.2.11.swf -> http://releases.flowplayer .org/flowplayer.rtmp/flowplayer.rtmp-3.2.11.zip

(它适用于 mp3、mp4 和 flv)

于 2012-09-27T14:43:34.157 回答