1

My html-video calls multiple separate request for chunks. seems not like single stream.

When I see that in debugging tools,

enter image description here

As you see, there are 3 different call.

This is the request header,

Accept:*/*
Accept-Encoding:identity;q=1, *;q=0
Accept-Language:ja-JP,en-US;q=0.8
Connection:keep-alive
Cookie:stg_domain_token=oNijQNByftcYnsLGzFZxRyCesLR-GdWKi6a-uKSJJ9060Yk8pwCiUlcHChyf
Host:stg.myhost.com
Range:bytes=32768-
User-Agent:Mozilla/5.0 (Linux; Android 6.0.1; SC-05G Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/54.0.2840.68 Mobile Safari/537.36
X-DevTools-Emulate-Network-Conditions-Client-Id:62626f5b-82c9-48b9-97f5-a7a983e1c3bc

and here is the response header,

accept-ranges:bytes
Connection:keep-alive
Content-Disposition:filename=49976265106__9BB3FA25-04E4-4AF5-903C-9B12CF622567.MOV
Content-Length:324882
content-range:bytes 32768-357649/357650
Content-Type:video/quicktime
Date:Fri, 04 Nov 2016 06:15:06 GMT
Server:Apache
X-Powered-By:PHP/5.6.17

anyone know what I am missing?

Expert wanna be
  • 10,218
  • 26
  • 105
  • 158

1 Answers1

2

Browser won't download entire video or audio file at a time. It downloads them in chunks and plays them one after another.

For your understanding, I'm explaining the headers here.

Request Header

Accept:*/* : Browser will accept any MIME-Types as response.

Range:bytes=32768- : Browser already has the video part, till byte 32767 but requires file from byte 32768.

Response Header

status : 206 : It means the served content is partial (not complete file)

accept-ranges:bytes : Server accepts byte ranges only (which is universal)

Content-Length:324882 : Total content length from requested byte.

content-range:bytes 32768-357649/357650: it is in this format start byte - last byte / total length (from 0 byte to end)

Content-Type:video/quicktime : Type of content

Prajwal
  • 3,930
  • 5
  • 24
  • 50
  • 1
    But in this sample page,http://www.videogular.com/examples/simplest-videogular-player/, I can see only single media request, and it updates it-selves. do you know what difference? – Expert wanna be Nov 04 '16 at 06:47
  • It is actually downloading the entire file at a time. – Prajwal Nov 04 '16 at 06:57
  • `status : 206` `Content-Length:24406814` `Content-Range:bytes 0-24406813/24406814` Here the file – Prajwal Nov 04 '16 at 06:58