[Icecast] Generation of M3U and XSPF

Sebastien Bordes sebastien.bordes at gmail.com
Tue Mar 1 02:40:20 PST 2011


Yes I do but the hostname tag is only used for stream information...

I tried a lod of proxy configuration and none of them are working, the best
I'd done is to have the http://radio.mydomain.com:8000/mystream.ogg url

Perhaps I miss something...

To achieve what I want I think that it's necessary to override the int
fserve_client_create function to smartly manage host and port when the
icecast server is proxied by apache httpd with mod_proxy, I will continue to
explorer proxying parameters but I didn't see where the host and port is
retrieved by the icecast configuration manager...

Thx for your reply


2011/3/1 Leo Currie <leo.currie at gmail.com>

> 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
>>
>>
>


-- 
-------------------------------------------------------------------------------
sebastien.bordes at gmail.com - http://www.webeo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast/attachments/20110301/90b39d37/attachment.htm 


More information about the Icecast mailing list