A
A
Arman2013-08-26 14:47:36
PHP
Arman, 2013-08-26 14:47:36

Is it possible to write online radio in php?

If yes, and I hope for a positive answer, there are a couple of questions.
I would like to write a radio in php for a general outlook.
those. there will be a demon on php which gives the data in a stream. At the same time, 1-10 clients can connect to it and receive data. It is desirable, of course, that everyone listens to one song with an error of 1-2 seconds.
Advise literature, articles. What functions should be used to create a daemon and stream a file.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nikolai Vasilchuk, 2013-08-26
@Arik

Have you seen this article ?
If it's not a secret, why in PHP? He's not at all suited for such purposes.

S
Sergey Cherepanov, 2013-08-26
@fear86

IMHO, personally, I would try to do this on Go to broaden my horizons.

E
Evgeny Elizarov, 2013-08-26
@KorP

Is there a similar article, only about Python? :)

Y
Yuri Popov, 2013-08-26
@DjPhoeniX

What for? The liquidsoap + icecast bundle rises in 10 minutes ... And if the point is self-learning, then the task, IMHO, is too complicated, because even parsing mp3 and merging 2 streams without mixing and id3 tags is quite problematic.

A
Alexander Karabanov, 2013-08-26
@karabanov

daemon in php

I don't think this is a good idea. Here are a few reasons: PHP is built to die .

V
Vyacheslav Slinko, 2013-08-26
@KeepYourMind

reactphp to help you - an asynchronous framework
will help in distributing a stream to more than 1 client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question