使用 Icecast2 中继 HTTPS 流

Relaying a HTTPS stream with Icecast2

我正在尝试中继通过 HTTPS 广播的流,有没有办法做到这一点?该文档描述了如何使用 listen-socket 使用 https 进行广播,我认为这不是我想要的。所有帮助将不胜感激

我试过中继普通的 http 流并且它有效。但不适用于 https

我尝试在 url

中包含 https 和不包含 https
`<relay>
    <server>https://streamingurl.com</server>
    <port>800</port>
    <mount>/f</mount>
    <local-mount>/f</local-mount>
    <on-demand>0</on-demand>
    <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>`

很遗憾,目前无法做到这一点。

解决此问题的一个很好的解决方法是使用 nginx 设置反向代理。我这样做是为了通过 http 访问 https 流,icecast2 能够毫无问题地转发它。

您尝试中继的源服务器是什么?另一个 Icecast 或其他东西?

如果 Icecast 支持 SSL 并且有很多扩展并且可能能够中继 https 流,则 -kh 分支。 (抱歉,我没有更多帮助)请参阅 https://karlheyes.github.io

您不应在上下文中包含 http 或 https,而应包含地址。

    <relay>
            <server>sourceip</server>
            <port>443</port>
            <mount>/sourcemount</mount>
            <local-mount>/localmount</local-mount>
            <on-demand>0</on-demand>
            <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
    </relay>

我刚刚用 -kh branch icecast 服务器测试了它,它工作了,但我无法确认它实际上是在建立 SSL 连接;但它正在建立连接。