I'm trying to get HTML5 audio seeking to work with range requests.
I would like to use
sendFilePart , but it seems to return always 200 OK as the response status code. In my use case, 206 Partial concent would be needed to implement streaming and seeking larger audio files.
Also, I'm unable to set "Content-Length" header with
addHeader .
The response contains the following headers:
< HTTP/1.1 200 OK
< Date: Thu, 06 Jun 2013 07:56:34 GMT
< Content-Type: audio/mpeg
< Vary: Accept,Accept-Language
< Accept-Ranges: bytes
< Content-Range: bytes 0-100000/3733593
< Set-Cookie: _SESSION=h6/MhXFz+rrv3SIylOd33xQ9JuWJyYM/tmNlv1pTrd4Nfb6RARQ7S1i2W6Ev+lnim2y83j3exjYpHKGGysvooBceiPonugvnEDJSnU8eB1+6kahBnZDqrWIC2ZgCwn1mMrC2KJA8SrU=; Path=/; Expires=Tue, 11-Jun-2013 07:56:25 GMT; HttpOnly
< Transfer-Encoding: chunked