I use flowplayer for playing mp3. But i have an error;
202 The provider specified in this clip is not loaded, Provider audio.clip: [clip]
I was not having it and the error was using previously.
<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")%>'
}
}
});
Dou u hane any idea? Thank u.
For others, if necessary Solution is;
<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>
for flowplayer-3.1.1.min.js -> http://releases.flowplayer.org/flowplayer/flowplayer-3.2.15.zip for flowplayer.rtmp-3.2.11.swf -> http://releases.flowplayer.org/flowplayer.rtmp/flowplayer.rtmp-3.2.11.zip
(It works mp3, mp4 and flv)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.