Welcome! Log In Create A New Profile

Advanced

proxy_pass и icecast2

Anton P Robul
March 30, 2010 12:18PM
Здравствуйте !

У меня есть радио поток (реализован с помощью icecast2)

крутится по адресу cast.newnn.ru:8000/chillout



На днях понадобилось пробросить его на cast.newnn.ru/chillout, сваял вот
такой конфиг:

server {

server_name .cast.newnn.ru;

access_log off;

error_log off;



gzip off;

sendfile on;

tcp_nopush on;

tcp_nodelay on;

keepalive_timeout 0;

# reset_timedout_connection on;



proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

#proxy_hide_header Transfer-Encoding;

#proxy_hide_header Date;

proxy_buffering off;



location / {

proxy_pass http://cast.newnn.ru:8000/;

}



}



При проигрывании с адреса: cast.newnn.ru:8000/chillout



Из winamp - ОК

Из flash player'a - ОК

VLC media player (http://www.videolan.org/vlc/) - ОК



При проигрывании с адреса: cast.newnn.ru /chillout в VLC media player
грузится 1-я секунда и стоп



В чем может быть проблема ?



У меня есть небольшие мысли на этот счет, при запросе с
cast.newnn.ru:8000/chillout

Отдаются такие заголовки:

HTTP/1.0 200 OK

Content-Type: audio/mpeg

icy-br: 128, 128

ice-audio-info: ice-samplerate=44100;ice-bitrate=128;ice-channels=2

icy-genre: Various

icy-name: Radio NewNN

icy-pub: 1

icy-url: http://radio.newnn.ru

Server: Icecast 2.3.2

Cache-Control: no-cache



При запросе cast.newnn.ru/chillout

HTTP/1.1 200 OK
Server: nginx/0.7.62
Date: Tue, 30 Mar 2010 15:53:30 GMT
Content-Type: audio/mpeg
Transfer-Encoding: chunked
Connection: close
icy-br: 128, 128
ice-audio-info: ice-samplerate=44100;ice-bitrate=128;ice-channels=2
icy-genre: Various
icy-name: Radio NewNN
icy-pub: 1
icy-url: http://radio.newnn.ru
Cache-Control: no-cache



Заголовки отданные nginx'om вероятно как то влияют на проигрывание,
подскажите куда копать ?

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy_pass и icecast2

Anton P Robul March 30, 2010 12:18PM

Re: proxy_pass и icecast2

Igor Sysoev March 30, 2010 12:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready