[Icecast] Generation of M3U and XSPF
Leo Currie
leo.currie at gmail.com
Tue Mar 1 10:08:10 UTC 2011
I assume you have already tried setting the <hostname> section in the
config, and that it doesn't work?
http://icecast.org/docs/icecast-2.3.2/icecast2_config_file.html#misc
In that case, perhaps Icecast is picking up the server name from the http
headers. Can you get your proxy to re-write the headers in the request?
Otherwise, you could just generate local m3u/xspf files for each stream?
- Leo
On 28 February 2011 20:21, Sebastien Bordes <sebastien.bordes at webeo.fr>wrote:
> Hello,
>
> I'm a new user of icecast which is a really cool software.
>
> I use it with the the http proxy module of apache httpd to do port
> forwarding with 2 sub domains.
>
> On my router i forward all tcp traffic of the port 80 to my server.
>
> 2 Sub domains are redirected to my server :
>
> radio.mydomain.com (icecast)
> music.mydomain.com (ampache)
>
> my apache server host the ampache application with a dedicated virtual
> host.
> and use the proxy module to forward request to the icecast appliaction
> withe apropriated port.
>
> The stream can be correctly listen inside and outside my network
>
> But the problem is that the content of the m3u and xspf file use local url
> => 127.0.0.1 with local port
>
> How can I change this generation , Is it possible to add a property
> (external url, external port) in the configuration file and to apply a patch
> on the fserve.c source file
>
> Here is the code to change :
>
> * config = config_get_config();
> snprintf (httpclient->refbuf->data, BUFSIZE,
> "HTTP/1.0 200 OK\r\n"
> "Content-Type: audio/x-mpegurl\r\n\r\n"
>
> "http://%s:%d%s\r\n",
> config->hostname, config->port,
> sourceuri
> );
> config_release_config();*
>
>
> Or do you know an alternative to hide port to users..
>
> Thanks
>
>
>
> -------------------------------------------------------------------------------
> sebastien.bordes at gmail.com - http://blog.webeo.fr
>
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20110301/a688b181/attachment.htm>
More information about the Icecast
mailing list