首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >IceCast流认证

IceCast流认证
EN

Stack Overflow用户
提问于 2015-05-13 18:56:28
回答 1查看 1.3K关注 0票数 2

我用的是Icecast 2.3.3。

我想使用URL流身份验证,问题是Icecast服务器没有调用身份验证服务器url,我不知道为什么。Icecast服务器运行在Azure上的Linux机器上,auth服务器是Azure Web应用程序。我尝试了不同的配置,得到了意想不到的错误。第一,用于:

代码语言:javascript
复制
<mount type="normal">
    <mount-name>/local.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://localhost/"/>
    </authentication>
</mount>

我得到了这个错误(据我理解):

代码语言:javascript
复制
[2015-05-13  18:36:52] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:36:52] WARN auth_url/url_stream_auth auth to server http://localhost/ failed with Failed to connect to localhost port 80: Connection refused
[2015-05-13  18:36:52] WARN auth/stream_auth_callback Failed auth for source "/local.ogg"

然后,用于:

代码语言:javascript
复制
<mount type="normal">
    <mount-name>/ip.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://123.45.67.89/"/>
    </authentication>
</mount>

同样,正如我所预期的那样,错误(这个ip是随机的):

代码语言:javascript
复制
[2015-05-13  18:37:34] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:37:35] WARN auth_url/url_stream_auth auth to server http://123.45.67.89/ failed with Connection timed out after 15008 milliseconds
[2015-05-13  18:37:35] WARN auth/stream_auth_callback Failed auth for source "/ip.ogg"

但是,当我想使用我的Web应用程序时

代码语言:javascript
复制
<mount type="normal">
    <mount-name>/blast.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://blast.azurewebsites.net/"/>
    </authentication>
</mount>

我没有一个错误能向我解释什么是不对的

代码语言:javascript
复制
[2015-05-13  18:38:29] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:38:30] WARN auth/stream_auth_callback Failed auth for source "/blast.ogg"

关于Icecast stream_auth函数我应该知道些什么吗?或者我必须用Icecast不同的方式设置VM?

如果有人有一个使用stream_auth的工作示例,这也将是值得赞赏的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-14 22:15:33

看起来icecast安装过程没有检查libcurl的可用性。这是这个功能所需要的。检查您的config.log中是否有"libcurl“这样的消息,如果是这样的话,那么您可以运行”apt-getinstalllibcurl4-gnutils-dev“来安装libcurl。应该可以修复此错误。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30223129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档