S
S
Shi2017-01-25 13:36:05
PHP
Shi, 2017-01-25 13:36:05

Controlling music playback on a remote PC using PHP?

Hi all. Tell me how to start implementation? There is a PC on Windows or NIX, it does not matter, mp3 should be spinning on it, sound is output from it. The task is to manage playlists, switch tracks, through the web interface. PHP seems to be somehow closer.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Sharihin, 2017-01-25
@Pinsky

Here's a joy for you
mpd.wikia.com/wiki/Client_Libraries

K
kpa6uu, 2017-01-25
@kpa6uu

You need software on a remote PC that will send requests to your server to get a pool of commands. It's very easy to do.
Or, as an option, raise a server on a remote PC, open ports for a couple of services, and control the machine from them.

I
Ivan, 2017-01-25
@iwqn

it is easier to use a teamviewer because it is not known what kind of player Mouzon plays - after all, the OS is different

S
Shi, 2017-01-25
@Shi

Let's simplify. There is a server on ubuntu. On it, you need to raise a web service in order to access the web and control the playback of files on the server (through a sound card installed on the server)

A
Alexander Kubintsev, 2017-01-25
@akubintsev

The task comes down to two things:
1 - managing the playlist via the web
2 - playing via the server itself
The first task is trivial.
The second task is atypical. As the simplest option, at least just play music, call the console player via exec(). For example ffplay example.mp3. Next, we need to look for opportunities to work with this process.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question