2016-11-04 10 views
1

내 html-video는 청크에 대한 여러 개의 개별 요청을 호출합니다. 단일 스트림처럼 보이지 않습니다. Html5, chuncked 비디오 스트리밍

내가

enter image description here

보시다시피

는, 3 개의 다른 전화가, 디버깅 도구에서 볼

.

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 

사람이 내가 놓친 게 무엇인지,

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 

요청 헤더이며, 여기에 응답 헤더입니까?

답변

1

브라우저는 한 번에 전체 비디오 또는 오디오 파일을 다운로드하지 않습니다. 그것들을 청크로 다운로드하고 차례대로 재생합니다.

여기서는 헤더를 설명합니다.

요청 헤더

Accept:*/* : 브라우저가 응답으로 어떤 MIME-유형을 받아 들일 것입니다.

Range:bytes=32768- : 브라우저가 이미 32768

응답 헤더

status : 206 바이트 32767까지, 비디오 부분을 가지고 있지만 바이트의 파일이 필요합니다 : 그것은 봉사 내용은 부분적인 의미 (안 전체 파일)

accept-ranges:bytes는 : 서버 바이트 만 (보편적 인)

Content-Length:324882 허용 범위 : 요청 된 바이트의 총 콘텐츠 길이

content-range:bytes 32768-357649/357650 : 그것은이 형식 시작 바이트에 - (0 바이트에서 끝까지) 마지막 바이트/총 길이

Content-Type:video/quicktime : 내용

+0

의 종류 그러나이 샘플 페이지에서, HTTP : // WWW. videogular.com/examples/simplest-videogular-player/, 단일 미디어 요청 만 볼 수 있으며 업데이트됩니다. 무슨 차이인지 알아? –

+0

실제로는 한 번에 전체 파일을 다운로드하고 있습니다. – Prajwal

+0

'status : 206''Content-Length : 24406814' 'Content-Range : bytes 0-24406813/24406814' 여기 파일 – Prajwal