我的网络电台需要一些帮助,每次刷新页面都需要一些时间。即使我刷新它怎么能让它连续播放?
谢天谢地,这是我的代码:
<div class="col c2">
<h2><span>Live Streaming</span> </h2>
<div id="container">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
<a href="http://www.shouthost.com/">Shoutcast & Icecast Server</a>
</div>
<script type="text/javascript" src="http://www.shouthost.com/freeflashplayer/player/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject('http://www.shouthost.com/freeflashplayer/player/player.swf',
'player',"340","32","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","skin=http://www.shouthost.com/freeflashplayer/skins/modieus.swf&title=Live Stream&type=sound&file=http://78.129.163.82:10729/;stream.mp3&13202692901&duration=99999&id=scplayer&autostart=true");
s1.write("container");
</script>
<script type="text/javascript" src="https://hosted.muses.org/mrp.js"></script>
<script type="text/javascript">
MRP.insert({
'url':'http://78.129.163.82:10729',
'codec':'mp3',
'volume':100,
'autoplay':true,
'buffering':5,
'title':'RADIO APOSTLE 102.6 MHZ',
'bgcolor':'#12880C',
'skin':'simple-red',
'width':300,
'height':122
});
</script>
</div>
答案 0 :(得分:0)
你不能,除非你通过ajax刷新页面并将内容加载到页面中。
为什么要刷新页面?
答案 1 :(得分:0)
基本上你有三个选择: