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

Помогите в создании интернет-радио! Срочно!!!

 

8
maestro-lavon @maestro-lavon
Помогите в создании интернет-радио!
Какие есть скрипты для реализации интернет-радио без всяких Winamp-ов и т.п.
Т.е. на сервере есть папка с музычкой, В базе MySQL создан плейлист, или в папке лежит файл-плейлит и скрипт автоматически проигрывает песенки.
А время от времени я кидаю туда запись эфира и оно проигрывает его.
Должно быть ИНТЕРНЕТ-РАДИО, а не список воспроизведения, который могут листать.
Можно PHP, MySQL, JS, Ajax, jQuery и т.п. Хостинг позволяет.
Прошу. Очень надо!!!
Заранее благодарю...

0
732
Sweet_Jam @Sweet_Jam
:D Теже яйца только в профи..

0
6245
Тарас @tarasian666
phpcast

0
8
maestro-lavon @maestro-lavon
tarasian666 пишет:

phpcast

Подскажи где скачать и настроить...

Отредактировано maestro-lavon - 30.05.2010
0
6245
0
8
maestro-lavon @maestro-lavon
tarasian666 пишет:

**********

Спасибо за ссылочку. Уже скачал.
А как там что настраивать. и короч: что к чему...
Поясни мне... плиз...

0
6245
Тарас @tarasian666
  1. $stream['name'] = "PHPCast Stream"; /* Name of the stream */
  2. $stream['genre'] = "various"; /* Genre of the stream */
  3. $stream['url'] = "http://phpcast.sourceforge.net"; /* URL of the site hosting phpcast */
  4. $stream['public'] = "1"; /* Set to 0 to make the server private */
  5. $stream['bitrate'] = "128"; /* Set this to the bitrate of your mp3 files */
  6. $stream['path'] = "data"; /* Path to the mp3 files. Relative or absolute */
  7. // Configuration of the cache
  8. $cache['active'] = true; /* Set to false to disable cache (up to 3x slower for tags extraction ) */
  9. $cache['type'] = gdbm; /* Type of cache (gdbm, ndbm, db2, db3, db4)
  10. depending on your php compile option */
  11. $cache['directory'] = "cache"; /* Relative or absolute path to save cache files (beware of chmod) */

даже без словаря можно разобратся

0
8
maestro-lavon @maestro-lavon
tarasian666 пишет:

  1. $stream['name'] = "PHPCast Stream"; /* Name of the stream */
  2. $stream['genre'] = "various"; /* Genre of the stream */
  3. $stream['url'] = "http://phpcast.sourceforge.net"; /* URL of the site hosting phpcast */
  4. $stream['public'] = "1"; /* Set to 0 to make the server private */
  5. $stream['bitrate'] = "128"; /* Set this to the bitrate of your mp3 files */
  6. $stream['path'] = "data"; /* Path to the mp3 files. Relative or absolute */
  7. // Configuration of the cache
  8. $cache['active'] = true; /* Set to false to disable cache (up to 3x slower for tags extraction ) */
  9. $cache['type'] = gdbm; /* Type of cache (gdbm, ndbm, db2, db3, db4)
  10. depending on your php compile option */
  11. $cache['directory'] = "cache"; /* Relative or absolute path to save cache files (beware of chmod) */

даже без словаря можно разобратся

Respect тебе!!! Выручил!!!

0
8
maestro-lavon @maestro-lavon
Не могу поставить. :(
Пишет ошибку:
PHP is not compiled with dba support, required to use DBM style cache.
Что делать?

Проверь шапку кода:


  1. // Details of the stream
  2. $stream['name'] = "Radio Catholic-Songa.net"; /* Name of the stream */
  3. $stream['genre'] = "religious"; /* Genre of the stream */
  4. $stream['url'] = "http://radio.catholic-songs.net"; /* URL of the site hosting phpcast */
  5. $stream['public'] = "1"; /* Set to 0 to make the server private */
  6. $stream['bitrate'] = "96"; /* Set this to the bitrate of your mp3 files */
  7. $stream['path'] = "data"; /* Path to the mp3 files. Relative or absolute */
  8. // Configuration of the cache
  9. $cache['active'] = true; /* Set to false to disable cache (up to 3x slower for tags extraction ) */
  10. $cache['type'] = gdbm; /* Type of cache (gdbm, ndbm, db2, db3, db4) - (в этой строчке перепробовал всё - не пашет :()
  11. depending on your php compile option */
  12. $cache['directory'] = "cache"; /* Relative or absolute path to save cache files (beware of chmod) */
  13. // Size of shoutcast frames
  14. $taille = 8192;
  15. /* You won't have to touch below for a normal setup */
  16. @ini_set("max_execution_time", "0");
  17. require_once'getid3/getid3.php';
  18. require_once 'getid3/extension.cache.dbm.php';
  19. // headers shoutcast
  20. header("icy-notice1:This is a WINAMP ShoutCast Stream");
  21. header("icy-notice2:You will only see binary data, please press STOP button");
  22. header("icy-name:".$stream['name']);
  23. header("icy-genre:".$stream['genre']);
  24. header("icy-url:".$stream['url']);

Отредактировано maestro-lavon - 31.05.2010
0
6245
Тарас @tarasian666
выключи кеш вобще

0
8
maestro-lavon @maestro-lavon
tarasian666 пишет:

выключи кеш вобще

Спасибо огромное!

Всё работает!!!

0
8
maestro-lavon @maestro-lavon
Как сделать, чтобы в плейлисте отображалось только название песни без папки:
не "mp3/title"
а "title"
Попробовал в спрочках поудалять $steram["path"] - не работает - даёт ошибку.
И ещё как сделать, чтобы допустим один файл проигрывался допустим ровно в 20.00 (Типа выпуск новостей)

0
6245
Тарас @tarasian666
совершенствуем познания php и будет вам щастье ))

0
8
maestro-lavon @maestro-lavon
tarasian666 пишет:

совершенствуем познания php и будет вам щастье ))

С ужовольствием, но хотелось бы почитать профессионала :)
Помоги плиз :)

0
1
taiga @taiga
а возможно ли то же самое, только ссылки на мп3 с внешних серверов?

0
6245
Тарас @tarasian666
возможно

0
35
zyat @zyat
tarasian666 пишет:

выключи кеш вобще

А как его выключить?

0
6245
Тарас @tarasian666
  1. $cache['active'] = false;

0
35
zyat @zyat
Всё так и сделал сначала, открываю "phpcast.php" а там карукули, а музыка играет через винамп нормально

Добавлено спустя 2 минуты 46 секунд:
Короче разобрался, всё это такой бред, лично для меня.

0
6245
Тарас @tarasian666
ну так и должно быть.
пс можете сохранить каракули и прослушать их ))

0





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

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