PHP Streaming MP3

后端 未结 7 729
情深已故
情深已故 2020-12-02 19:12

I have a very similar situation to the person who asked: Can I serve MP3 files with PHP? Basically I am trying to protect mp3 files from direct download, so users have to go

7条回答
  •  时光说笑
    2020-12-02 20:07

    You can try HTTP chunking. Set the "Transfer-Encoding" header to "chunked", then output the size of each chunk before sending it. End each chunk size and chunk with a CRLF.

    For anything more complex, I recommend using a streaming server, such as Icecast.

提交回复
热议问题