HTML5 Video: Changing HTTP Range Request Headers

I have an html5 video player (video -tag). When the page loads, it will send a request to the video file.

Is it possible to change the HTTP request header range field? (see screenshot, between 2 red lines)

Range: bytes = 0- will load all videos, and I would like to limit it to "Range: bytes = 0-1000000", for example

Screen shot

The video file is located on the CDN, so I can not do anything on the server.

+5
source share
1 answer

XMLHttpRequest! blob window.URL.createObjectURL, "Accept-Range: Bytes". , , . , , . , , . Yamdi, xml , .flv.

(bytes = number1-number2...), , 1, (2-1 + 1) : Content-Type, Content -Disposition, HTTP/1.1 206 , Content-Range.

. .

+1

All Articles