Answer the question
In order to leave comments, you need to log in
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
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.
it is easier to use a teamviewer because it is not known what kind of player Mouzon plays - after all, the OS is different
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)
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 questionAsk a Question
731 491 924 answers to any question