On Tue, Jun 22, 2010 at 4:28 AM, Adam Kocoloski <[email protected]> wrote: > Hi Ryan, Range headers are not currently supported, but they will be. I'm > not sure about an ETA, though. Best,
Is anyone in particular working on a Range headers patch, or is it just on the roadmap? I'd love to take a swing at it if nobody else is already working on it. > > Adam > > On Jun 21, 2010, at 11:02 PM, Ryan Ramage wrote: > >> Hi all. It would be fantastic if a couchapp could support html5 media >> tags where the src is a mp3/ogg as a couch attachment. But I >> am seeming to have an issue. When a seek is done in the >> browser(skipping to a spot in the ogg), couch db cant support it. >> Browsers seem to issue a Range header. CouchDB (or the erlang http >> server?) is not currently doing anything with this. >> So the html5 tag support is not working so hot. I have compared the >> same audio file from a working server, and a couchdb server. >> See below for the results. >> >> It seems couch needs to deal with the Range request header and the >> Accept-Ranges, and Content-Range response headers. >> >> Is anyone else able to make a seekable media file from a couch db >> attachment? Any help would be great. >> >> Here is the header reference: >> >> CouchDB >> ------------ >> Request Headers >> Host: localhost:5984 >> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; >> rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729) >> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >> Accept-Language: en-us,en;q=0.5 >> Accept-Encoding: gzip,deflate >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >> Keep-Alive: 300 >> Connection: keep-alive >> Range: bytes=0- >> If-None-Match: "55-38b290cca196c08a180c34c1970d262a" >> Cache-Control: max-age=0 >> >> Response Headers >> Transfer-Encoding: chunked >> Server: CouchDB/0.11.0 (Erlang OTP/R13B) >> Etag: "57-32aa971d2262ce3bac0af71b8dfda4dc" >> Date: Tue, 22 Jun 2010 02:38:32 GMT >> Content-Type: video/ogg >> Cache-Control: must-revalidate >> >> >> Other Server >> -------------- >> Request Headers >> Host www.miaowmusic.com >> User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) >> Gecko/20100315 Firefox/3.5.9 ( .NET CLR 3.5.30729) >> Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 >> Accept-Language en-us,en;q=0.5 >> Accept-Encoding gzip,deflate >> Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 >> Keep-Alive 300 >> Connection keep-alive >> Range bytes=0- >> Cookie __utma=192278326.2136153585.1277170435.1277170435.1277170435.1; >> __utmb=192278326.1.10.1277170435; __utmc=192278326; >> __utmz=192278326.1277170435.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none) >> If-Modified-Since Tue, 30 Jun 2009 18:46:49 GMT >> If-None-Match "2976699-2952c0-46d953aafd840" >> Cache-Control max-age=0 >> >> Response Headers >> Date Tue, 22 Jun 2010 01:36:40 GMT >> Server Apache/2.2 >> Last-Modified Tue, 30 Jun 2009 18:46:49 GMT >> Etag "2976699-2952c0-46d953aafd840" >> Accept-Ranges bytes >> Content-Length 4800 >> Content-Range bytes 2703360-2708159/2708160 >> Keep-Alive timeout=15, max=99 >> Connection Keep-Alive >> Content-Type application/ogg > > -- Paul Bonser http://probablyprogramming.com
