ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
7   •   Посмотреть все темы

Не подключается плеер icecast2

 

2
KiRiK @KiRiK
Включаю icecast2 Через сэм все нормально могу подключится к потоку stream, о вот через плеер сайт.ком:8000/stream
Не получается. Заранее извиняюсь если подобная тема была ( искал не нашел)

  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>2</sources>
  5. <threadpool>5</threadpool>
  6. <queue-size>524288</queue-size>
  7. <client-timeout>30</client-timeout>
  8. <header-timeout>15</header-timeout>
  9. <source-timeout>10</source-timeout>
  10. <!-- If enabled, this will provide a burst of data when a client
  11. first connects, thereby significantly reducing the startup
  12. time for listeners that do substantial buffering. However,
  13. it also significantly increases latency between the source
  14. client and listening client. For low-latency setups, you
  15. might want to disable this. -->
  16. <burst-on-connect>1</burst-on-connect>
  17. <!-- same as burst-on-connect, but this allows for being more
  18. specific on how much to burst. Most people won't need to
  19. change from the default 64k. Applies to all mountpoints -->
  20. <burst-size>65535</burst-size>
  21. </limits>
  22. <authentication>
  23. <!-- Sources log in with username 'source' -->
  24. <source-password>Пароль тут</source-password>
  25. <!-- Relays log in username 'relay' -->
  26. <relay-password>Пароль тут</relay-password>
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>admin</admin-user>
  29. <admin-password>Пароль тут</admin-password>
  30. </authentication>
  31. <!-- set the mountpoint for a shoutcast source to use, the default if not
  32. specified is /stream but you can change it here if an alternative is
  33. wanted or an extension is required
  34. <shoutcast-mount>/ices</shoutcast-mount>
  35. -->
  36. <!-- Uncomment this if you want directory listings -->
  37. <!--
  38. <directory>
  39. <yp-url-timeout>15</yp-url-timeout>
  40. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  41. </directory>
  42. -->
  43. <!-- This is the hostname other people will use to connect to your server.
  44. It affects mainly the urls generated by Icecast for playlists and yp
  45. listings. -->
  46. <hostname>109.234.158.226</hostname>
  47. <!-- You may have multiple <listener> elements -->
  48. <listen-socket>
  49. <port>8000</port>
  50. <!-- <bind-address>109.234.158.226</bind-address> -->
  51. <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  52. </listen-socket>
  53. <!--
  54. <listen-socket>
  55. <port>8001</port>
  56. </listen-socket>
  57. -->
  58. <!--<master-server>127.0.0.1</master-server>-->
  59. <!--<master-server-port>8001</master-server-port>-->
  60. <!--<master-update-interval>120</master-update-interval>-->
  61. <!--<master-password>hackme</master-password>-->
  62. <!-- setting this makes all relays on-demand unless overridden, this is
  63. useful for master relays which do not have <relay> definitions here.
  64. The default is 0 -->
  65. <!--<relays-on-demand>1</relays-on-demand>-->
  66. <!--
  67. <relay>
  68. <server>127.0.0.1</server>
  69. <port>8001</port>
  70. <mount>/stream</mount>
  71. <local-mount>/stream</local-mount>
  72. <on-demand>0</on-demand>
  73. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  74. </relay>
  75. -->
  76. <!-- Only define a <mount> section if you want to use advanced options,
  77. like alternative usernames or passwords -->
  78. <mount>
  79. <mount-name>/stream</mount-name>
  80. <!-- <username>source</username>
  81. <password>Пароль тут</password> -->
  82. <max-listeners>50</max-listeners>
  83. <dump-file>/tmp/dump-example1.ogg</dump-file>
  84. <burst-size>65536</burst-size>
  85. <fallback-mount>/nonstop</fallback-mount>
  86. <fallback-override>1</fallback-override>
  87. <fallback-when-full>1</fallback-when-full>
  88. <!-- <intro>/example_intro.ogg</intro> -->
  89. <hidden>0</hidden>
  90. <no-yp>1</no-yp>
  91. <authentication type="htpasswd">
  92. <option name="filename" value="myauth"/>
  93. <option name="allow_duplicate_users" value="0"/>
  94. </authentication>
  95. <on-connect>/home/icecast/bin/stream-start</on-connect>
  96. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  97. </mount>
  98. <fileserve>1</fileserve>
  99. <paths>
  100. <!-- basedir is only used if chroot is enabled -->
  101. <basedir>/usr/share/icecast2</basedir>
  102. <!-- Note that if <chroot> is turned on below, these paths must both
  103. be relative to the new root, not the original root -->
  104. <logdir>/var/log/icecast2</logdir>
  105. <webroot>/usr/share/icecast2/web</webroot>
  106. <adminroot>/usr/share/icecast2/admin</adminroot>
  107. <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
  108. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  109. May be made specific to a port or bound address using the "port"
  110. and "bind-address" attributes.
  111. -->
  112. <!--
  113. <alias source="/foo" dest="/bar"/>
  114. -->
  115. <!-- Aliases: can also be used for simple redirections as well,
  116. this example will redirect all requests for ********** to
  117. the status page
  118. -->
  119. <alias source="/" dest="/status.xsl"/>
  120. </paths>
  121. <logging>
  122. <accesslog>access.log</accesslog>
  123. <errorlog>error.log</errorlog>
  124. <!-- <playlistlog>playlist.log</playlistlog> -->
  125. <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  126. <logsize>10000</logsize> <!-- Max size of a logfile -->
  127. <!-- If logarchive is enabled (1), then when logsize is reached
  128. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  129. otherwise it will be moved to [error|access|playlist].log.old.
  130. Default is non-archive mode (i.e. overwrite)
  131. -->
  132. <!-- <logarchive>1</logarchive> -->
  133. </logging>
  134. <security>
  135. <chroot>0</chroot>
  136. <!--
  137. <changeowner>
  138. <user>nobody</user>
  139. <group>nogroup</group>
  140. </changeowner>
  141. -->
  142. </security>
  143. </icecast>

Аимп (плеер ) пишет: File: **********
Code: 40 (00000028)
Message: Connection timedout
-------------------------
HTTP/1.0 401 Authentication Required
WWW-Authenticate: Basic realm="Icecast2 Server"
Заранее спасибо! И кстати правильно ли реализован нон-стоп? (ICES коннектится на nonstop)Его пока не проверял.

0
2
KiRiK @KiRiK
Ап, нужна помощь)

0





Согласие на обработку данных на нашем сайте

Продолжая просматривать страницу, вы соглашаетесь с использованием файлов «Cookie» и с Политикой конфиденциальности «Privacy».
Наверху или внизу страницы вы можете изменить валюту и язык по умолчанию. Английская версия сайта ещё находится в доработке и доступна не полностью.