Показать сообщение отдельно
Старый 05.03.2012, 16:07
iNils вне форума Посмотреть профиль Отправить личное сообщение для iNils Посетить домашнюю страницу iNils Найти все сообщения от iNils
  № 2  
Ответить с цитированием
iNils
Негуру
 
Аватар для iNils

администратор
Регистрация: Jan 2000
Адрес: Кёнигсберг in Moscow
Сообщений: 21,884
Записей в блоге: 7
Звука нет, потому что вместо него вам возвращают html.

Вот пример запроса от Оперы.
Код:
[05.03.2012 14:49:01:609]
GET / HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.10.229 Version/11.60
Host: 62.182.207.111:8000
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
Referer: http://student2k1.narod.ru/Files/radio.swf
Connection: Keep-Alive
И ответ сервера
Код:
[05.03.2012 14:49:01:687]
ICY 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/win32 v1.9.8<BR>
icy-name:MG VOLNA
icy-genre:Best
icy-url:www.dagfm.ru
content-type:audio/mpeg
icy-pub:0
icy-br:112
далее идет аудио поток
Теперь смотрим на запрос IE
Код:
[05.03.2012 14:51:24:000]
GET / HTTP/1.1
Accept: */*
Accept-Language: ru-RU
Referer: http://student2k1.narod.ru/Files/radio.swf
x-flash-version: 11,1,102,55
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Host: 62.182.207.111:8000
Connection: Keep-Alive
И ответ
Код:
<HTML>
	<HEAD>
		<meta http-equiv="Content-Language" content="en-us">
		<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT">
		<title>SHOUTcast Administrator</title>
		<style type="text/css">
		<!--
			a:link {
				color: blue;
				font-family:Arial, Helvetica;
				font-size:9pt;
			}
			a:visited {
				color: blue;
				font-family:Arial, Helvetica;
				font-size:9pt;
			}
			a:hover {
				color: red;
				font-family:Arial, Helvetica;
				font-size:9pt;
			}
			.default {color: White;
				font-family:Arial, Helvetica;
				font-size:9pt;
				font-weight: normal
			}
			.ST {
				color: White;
				font-family:Arial, Helvetica;
				font-size:8pt;
				font-weight: normal
			}
			.logoText {
				color: red; 
				font-family: Arial Black, Helvetica, sans-serif; 
				font-size: 25pt; 
				font-weight: normal; 
				letter-spacing : -2.5px;
			}
			.flagText {
				color: blue; 
				font-family: webdings; 
				font-size: 36pt; 
				font-weight: normal; 
			}
			.ltv {
				color: blue; 
				font-family: Arial, Helvetica, sans-serif; 
				font-size: 9pt; 
				font-weight: normal;
			}
			.tnl {
				color: black; 
				font-family: Arial, Helvetica, sans-serif;
				font-size: 10pt;
				font-weight: bold; 
				text-decoration: none;
			}
		-->
		</style>
	</HEAD>
	<BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 bgcolor=#000000 text=#EEEEEE link=#001155 vlink=#001155 alink=#FF0000>
		<font class=default>
			<table width=100% border=0 cellpadding=0 cellspacing=0>
				<tr>
					<td height=50><font class=flagText>U</font><font class=logoText>&nbsp;SHOUTcast D.N.A.S. Status</font></td>
				</tr>
				<tr>
					<td height=14 align=right><font class=ltv><a id=ltv href="http://www.shoutcast.com/">SHOUTcast Server Version 1.9.8/win32</a></font></td>
				</tr>
				<tr>
					<td bgcolor=#DDDDDD height=20 align=center>
						<table width=100% border=0 cellpadding=0 cellspacing=0>
							<tr>
								<td align=center><font class=tnl><a id=tnl href="index.html">Status</a></font></td>
								<td align=center><font class=tnl>&nbsp;|&nbsp;</font></td>
								<td align=center><font class=tnl><a id=tnl href="played.html">Song History</a></font></td>
								<td align=center><font class=tnl>&nbsp;|&nbsp;</font></td>
								<td align=center><font class=tnl><a id=tnl href="listen.pls">Listen</a></font></td>
								<td align=center><font class=tnl>&nbsp;|&nbsp;</font></td>
								<td align=center><font class=tnl><a id=tnl href="home.html">Stream URL</a></font></td>
								<td align=center><font class=tnl>&nbsp;|&nbsp;</font></td>
								<td align=center><font class=tnl><a id=tnl href="admin.cgi">Admin Login</a></font></td>
							</tr>
						</table>
					</td>
				</tr>
			</table><br>
			<table cellpadding=5 cellspacing=0 border=0 width=100%>
				<tr>
					<td bgcolor=#000025 colspan=2 align=center><font class=ST>Current Stream Information</font></td>
				</tr>
			</table>
			<table cellpadding=2 cellspacing=0 border=0 align=center>
				<tr>
					<td width=100 nowrap><font class=default>Server Status: </font></td>
					<td><font class=default><b>Server is currently up and private.</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream Status: </font></td>
					<td><font class=default><b>Stream is up at 112 kbps with <B>1 of 32 listeners (1 unique)</b></b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Listener Peak: </font></td>
					<td><font class=default><b>5</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Average Listen Time: </font></td>
					<td><font class=default><b>23m&nbsp;44s</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream Title: </font></td>
					<td><font class=default><b>MG VOLNA</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Content Type: </font></td>
					<td><font class=default><b>audio/mpeg</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream Genre: </font></td>
					<td><font class=default><b>Best</b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream URL: </font></td>
					<td><font class=default><b><a href="www.dagfm.ru">www.dagfm.ru</a></b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream ICQ: </font></td>
					<td><font class=default><b><a href="http://wwp.icq.com/scripts/contact.dll?msgto= "> </a></b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream AIM: </font></td>
					<td><font class=default><b><a href="aim:goim?screenname= "> </a></b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Stream IRC: </font></td>
					<td><font class=default><b><a href="http://www.shoutcast.com/chat.phtml?dc=%20"> </a></b></td>
				</tr>
				<tr>
					<td width=100 nowrap><font class=default>Current Song: </font></td>
					<td><font class=default><b>Keiko Matsui - Steps Of Maya</b></td>
				</tr>
			</table><br>
			<table cellpadding=0 cellspacing=0 border=0 width=100%>	
				<tr>
					<td bgcolor=#DDDDDD  nowrap colspan=5 align=center>
						<table cellspacing=0 cellpadding=0 border=0>
							<tr>
								<td><font class=ltv>Written by Stephen 'Tag Loomis, Tom Pepper and Justin Frankel</font></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td nowrap colspan=5 align=center><font class=ST><b><a href="http://www.shoutcast.com/disclaimer.phtml">Copyright Nullsoft Inc</a><a href="/llamacookie">.</a> 1998-2004</b></font></td>
				</tr>
			</table>
		</font>
	</body>
</html>
Кстати, для стрима строчка _root.mySound.start(); не нужна.
__________________
(и)Нильс.ru | Плагины для FlashDevelop


Последний раз редактировалось iNils; 05.03.2012 в 16:10.