Web music player hidden mp3 file path seeking the great God enlighten background PHP language

Source: Internet
Author: User
Tags browser cache
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.