【发布时间】:2016-05-31 09:30:45
【问题描述】:
我刚刚在我的电脑中设置了icecast2 服务器和mixxx。我可以通过 url 收听我的收音机:http://127.0.0.1:8000/soylatino。但是,我问我在其他州的朋友他们是否可以收听我的收音机,他们说他们什么都听不到,但是在他们点击播放按钮后出现了错误 #2032 的消息。他们的电脑也有 adobe flash player。有人可以通过尝试配置我的服务器来告诉我我是否做错了什么,或者其他什么问题? 非常感谢您的支持。
我在 icecast.xml 文件中使用以下 xml 参数:
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
</listen-socket>
<!--
<relay>
<server>127.0.0.1</server>
<port>8080</port>
<mount>/soylatino</mount>
<local-mount>/different.ogg</local-mount>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
在mixxx直播设置中,我使用的是如下设置:
类型:icecast2, 主机:127.0.0.1, 端口:8000, 坐骑:/soylatino, 登录:来源, 密码:我的密码,
然后,当我点击 OK 按钮时,会出现一条消息: Mixx 已成功连接到流媒体服务器。
下一步:我在我的html页面中写了如下代码:
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
<script type="text/javascript" src="http://www.shoutcheap.com/flashplayer/skins/swfobject.js"></script>
<script type='text/javascript'>
var s1 = new SWFObject('http://www.shoutcheap.com/flashplayer/skins/player.swf','player',"340","50","9","#FFFFFF");
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always') s1.addParam("flashvars","skin=http://www.shoutcheap.com/flashplayer/skins/grungetape.swf&title=Live Stream&type=sound&file=http://127.0.0.1:8000/soylatino%3Ftype%3D.mp3 &13202692901&duration=99999&id=scplayer&autostart=true");
s1.write("container");
这是我的页面:www.followperu.com/radio.html
【问题讨论】:
标签: javascript html icecast