Web music player hidden mp3 file path find great god enlighten background PHP language
The younger brother encounters a project that needs to call the Web music player in the foreground to play the music files uploaded by the user, but cannot download and need to hide the file path. The player is directly called and cannot be changed. Music files can only be referenced directly with SRC. Does the great God have any way to solve????
Million XIE!!!!!! music player? Hide path
------Solution--------------------
As long as you want through the browser, it is equal to the user to download the resources to their own computer, the hearts of people can be found, such as IE cache, and you still want to use the Web music player.
------Solution--------------------
No, as long as the online listening, certainly in the browser cache can find the music file.
------Solution--------------------
It is naïve to say that you will find the document.
If you play with a stream, it is not cached at all.
------Solution--------------------
Suggest you go to the next music source site to see what people do as learning
------Solution--------------------
What is the concept of "download"? It's actually a transmission.
Cannot download is not possible, at least for now, but not directly download (with the download tool) or hide the server side of the path can try
Using streaming, is to read the file in a fixed number of bytes, sent to the client until the end, so that the client gets the address is PHP itself
Then before the PHP transmission to make a judgment limit, with the download tool is not sent, how to limit the other words
------Solution--------------------
Using streaming, is to read the file in a fixed number of bytes, sent to the client until the end, so that the client gets the address is PHP itself
Then before the PHP transmission to make a judgment limit, with the download tool is not sent, how to limit the other words