Google Chrome not completing request if a Partial Content header is set

前端 未结 1 868
孤街浪徒
孤街浪徒 2021-02-15 02:01

I am trying to stream a mp3 file to SoundManager with the HTTP/1.1 Partial Content header to allow some protection to my media files and also allow users to seek to different lo

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-15 02:11

    I'm pretty sure the problem you're having is with the content-range header

    try this instead

    header('Content-Range: bytes ' . $start . '-' . $end . '/' . $file_size);
    

    0 讨论(0)
提交回复
热议问题