Questions tagged [http-range]

45 questions
93
votes
5 answers

HTTP Range header

I was reading http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 and trying to figure out how to continue a file download. For example, suppose a file is of length 100 bytes and I have all the 100 bytes. However, I don't know what the…
dhruvbird
  • 6,061
  • 6
  • 34
  • 39
83
votes
2 answers

Difference between Content-Range and Range headers?

What is the difference between HTTP headers Content-Range and Range? When should each be used? I am trying to stream an audio file from a particular byte offset. Should I use Content-Range or Range header?
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
14
votes
2 answers

How to make browser request smaller range with 206 Partial Content

I am currently making a video streaming service where the video is transcoded in chunks of roughly 1MB each. The HTML5 player of Firefox, Chrome and IE all try their best to request partial content (by adding the Range header to their request).…
John Smith
  • 965
  • 1
  • 9
  • 22
14
votes
3 answers

RangeFileContentResult and Video streaming with Ranged Requests

I have an application which intended to stream videos back from our local DB. I spent a lot of time yesterday attempting to return the data a either a RangeFileContentResult or RangeFileStreamResult without success. In short, when I return the file…
dougajmcdonald
  • 19,231
  • 12
  • 56
  • 89
9
votes
2 answers

Content-Range for resuming a file of unknown length

I create a ZIP archive on-the-fly of unknown length from existing material (using Node), which is already compressed. In the ZIP archive, files just get stored; the ZIP is only used to have a single container. That's why caching the created ZIP…
cato_minor
  • 663
  • 6
  • 11
7
votes
1 answer

Does a HTTP resource that accepts range requests always specify content-length?

Before starting a Range request, I first check if it is supported using a HEAD request. Normally I get back something like this: curl -X HEAD -i http://bits.wikimedia.org/images/wikimedia-button.png HTTP/1.1 200 OK ... Content-Length:…
chowey
  • 9,138
  • 6
  • 54
  • 84
5
votes
1 answer

Firefox won't request further data after receiving 206 with specified content range

To give some context, I have a
garethdn
  • 12,022
  • 11
  • 49
  • 83
5
votes
0 answers

Android seeking while streaming video http range header

Have any one implemented seeking while streaming video over HTTP protocol, with range headers? We have implemented the server using range header for streaming video over http protocol, and its working fine if we play it through chrome browser. But…
Boopathy
  • 367
  • 1
  • 7
  • 16
4
votes
1 answer

What byte range 0- means

What "Range: bytes=0-" header means ? Is the entire file ? I tried sending back 0 bytes and is not working, when I send the entire file it works, but I receive this request more than once in a streaming context, it doesn't look right.
WhyWhyWhy
  • 85
  • 7
4
votes
1 answer

HTML5 video element not requesting end Range

I have a
BRO_THOM
  • 824
  • 9
  • 24
4
votes
0 answers

Android VideoView with HTTP Range headers

I have web server supporting HTTP Range headers for video content and for Web Browsers and iOS works great, but after starting testing on Android application using basic VideoView I found that application not making request with Range: 0- HTTP…
4
votes
2 answers

How can I get Meteor's HTTP.call (or get) method to modify the HTTP request Headers?

I am trying to speed up my Meteor application by only loading enough content of a webpage to get the tag of its HTML, to obtain its title, image, and description. I have a client calling a server-side method with the following…
forallepsilon
  • 429
  • 2
  • 16
3
votes
1 answer

Parsing and using the HTTP Range header with Spring

I'm writing a Spring controller that needs to accept the Range header, use the values there to request some data using a 3rd-party library, then return the result. The Spring HttpRange class looks promising, specifically the parseRanges function,…
Adam Millerchip
  • 20,844
  • 5
  • 51
  • 74
3
votes
2 answers

HTTP Range request multipart/byteranges - is there a CRLF at the end?

RFC7233 is nice and clear, except for line endings. I am specifically interested the HTTP response body of a multipart/byteranges response. I assume each line is terminated by a CRLF as HTTP headers are, but this document isn't explicit about it.…
zupa
  • 12,809
  • 5
  • 40
  • 39
2
votes
0 answers

How do browsers know which range-bytes to request when we seek a video to a specific time-stamp?

Background: I'm developing a custom video players in JS to stream MP4 Files using multiple-TCP connections (HTTP/1.1), the reason I'm doing this is because on networks with high latency a single TCP connection provide less bandwidth but by using…
1
2 3