search

Home  >  Q&A  >  body text

javascript - About implementing a music player control system in php

Now there is a project, implemented in php, something like this...
Building a web music player that can play local music, previous song, next song and other common functions, this is no problem, very good There are also ready-made plug-ins..
But it needs to be on a mobile terminal in the local area network, such as a mobile phone, and the app interface controls the web music playback on this server. Playback, pause, and other common functions of the player, including getting the current playback progress and dragging the playback progress....
This is more troublesome. I don’t know how to implement it because it is a web player and PHP is not resident in the memory. , how to control this player; it is impossible to let it refresh regularly and interact with the database, so continuous initialization cannot play normally..

I don’t know this function, how to implement it with PHP? What technology should be used?
I now want to use the front-end h5 to write websocket and establish a connection with the back-end. The back-end interface receives the call from the mobile terminal and communicates with the front-end. Because I don’t know about this, I don’t know if it can be realized?

Another point is that this server may need to use windows to facilitate customers to manage their own music.

PHP中文网PHP中文网2771 days ago551

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:03:27

    Use Swoole to communicate with the front end. But I think the backend can only do a good job in controlling the audio source resources. To implement a similar music player, the htm5 plug-in can only be called on the front end.

    reply
    0
  • Cancelreply