【问题标题】:icecast and mixxx setup - clients cannot hear my radio stationicecast 和 mixxx 设置 - 客户听不到我的广播电台
【发布时间】: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


    【解决方案1】:

    127.0.0.1 是用于环回的特殊 IP 地址。也就是说,127.0.0.1 始终意味着您自己……您自己的计算机。

    您可以连接到127.0.0.1,因为您与 Mixxx 在同一台计算机上运行服务器。但是,当您的朋友尝试连接到 127.0.0.1 时,他们的浏览器会尝试连接到他们自己的计算机,而不是您的计算机。

    虽然您可以使用127.0.0.1,但您需要向您的朋友提供您的公共 IP 地址。在大多数家庭网络设置中,您只有一个路由器可以处理的公共 IP 地址。然后,您的路由器将私有 IP 地址分配给您网络上的其他计算机,并通过 NAT 处理两个网络之间的路由请求。如果您Google for, "what is my IP address?",它将为您提供您的公共 IP 地址。 (您也可以在路由器的配置中获取此信息。)接下来,确保您已通过端口 8000 从路由器转发到计算机的私有 IP 地址。 (此私有 IP 地址不是环回127.0.0.1。它将位于私有网络块之一中,例如10.0.0.0192.168.0.0172.16.0.0。)

    【讨论】:

    • 嗨,布拉德,非常感谢您的及时回复。不幸的是,我的流媒体设置没有成功。你能检查一下我做错了什么吗?这是我目前所拥有的: 1- 这是我的公共 IP 地址:69.255.5...(类似这样的数字:iplocation.net) 2- 这是我的公共 IP 地址:2601:144:103:700 :1c26:1e8... (像这样的数字:whatismyipaddress.com)3- IPV4 地址:10.0.0.10(我认为这是我计算机的私有 IP)这是我目前在 icecast.xml 中的内容: 10.0.0.10主机名> 8000端口>
    • 我还更改了一些用户名和密码(在 icecast.xml 中)以使其正常工作。 * Mixx 服务器连接:类型:icecast2 主机:10.0.0.10 挂载:/soylatino 端口:8000 登录名:源密码:####### 在我的 html 页面中,我只有以下内容:
    • 所有其余部分在 icecast.xml 中保持不变。你认为我应该填写或更改icecast.xml 中的一些标签吗?还是html页面中的audio标签有问题?
    • 这个标签保持不变:8000/stream -->
    猜你喜欢
    • 2018-03-24
    • 1970-01-01
    • 2018-04-17
    • 1970-01-01
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多