From 6a67c25a16d3cbd98afaaadd7461f3d76c2a233d Mon Sep 17 00:00:00 2001
From: Noam Rosenthal until end
") tuple byteRange:
If response is a network error, then return false.
If byteRange is "entire resource
", then return
- true.
If response is a network error, then return
+ "failure
".
Let internalResponse be response's unsafe response.
If internalResponse's status is - not 206, then return false.
failure
".
+
+ If internalResponse's status is
+ 200, then: If byteRange is "entire resource
" then return
+ "success
". Otherwise return
+ "range not supported
".
If byteRange is "entire resource
" then set
+ byteRange to (0, "until end
").
Let origin be "rewritten
" if
internalResponse's URL is null; otherwise
@@ -35116,7 +35122,8 @@ interface MediaError {
then set resource's origin to origin.
-Otherwise, if response is CORS-cross-origin, then return false.
+Otherwise, if response is CORS-cross-origin, then return
+ "failure
".
Otherwise, set resource's origin to
"multiple
".
If start is not byteRange[0], or if
byteRange[1] is neither "until end
" or end,
- return false.
range mismatch
".
- Return true.
Return "success
".
The resource fetch algorithm for a @@ -35270,12 +35277,21 @@ interface MediaError { -
If the result of verifying - response given the current media resource and - byteRange is false, then call finalize. Otherwise, - incrementally read response's - body given updateMedia, - processEndOfMedia, finalize, and global.
If the result of
+ verifying response given the
+ current media resource and byteRange is
+ "failure
", then call finalize. Otherwise,
+ incrementally read
+ response's body given
+ updateMedia, processEndOfMedia, finalize, and
+ global.
User-agents may also treat "range mismatch
" and
+ "range not supported
" as failures. Supporting media loading from
+ servers without proper support for HTTP range requests requires buffering on the client
+ side, which might have implications on performance and memory use.
Update the media data with the contents of response's
unsafe response obtained in this fashion. response can be
From d430d83fb759d19b84b18a6f1bccc4211274bae4 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
If the result of
- verifying response given the
- current media resource and byteRange is
- "failure
", then call finalize. Otherwise,
- incrementally read
- response's body given
- updateMedia, processEndOfMedia, finalize, and
- global.
User-agents may also treat "range mismatch
" and
- "range not supported
" as failures. Supporting media loading from
- servers without proper support for HTTP range requests requires buffering on the client
- side, which might have implications on performance and memory use.
If the result of
+ verifying response given the
+ current media resource and byteRange is
+ "failure
", then call finalize. Otherwise,
+ incrementally read
+ response's body given
+ updateMedia, processEndOfMedia, finalize, and
+ global.
Update the media data with the contents of response's
unsafe response obtained in this fashion. response can be
From 68d8985231ef0ad76e3b6d8bc45d111006f43e6d Mon Sep 17 00:00:00 2001
From: Noam Rosenthal until end
") tuple byteRange:
If response is a network error, then return
- "failure
".
If response is a network error, then return false.
If byteRange is "entire resource
", then return
+ true.
Let internalResponse be response's unsafe response.
If internalResponse's status is
- neither 200 or 206, then return "failure
".
If internalResponse's status is + 200, then return true.
-If internalResponse's status is
- 200, then: If byteRange is "entire resource
" then return
- "success
". Otherwise return
- "range not supported
".
Though some user-agents allow playing media from origins who don't support + range requests, this is generally discouraged as it requires buffering on the client side.
+If byteRange is "entire resource
" then set
- byteRange to (0, "until end
").
If internalResponse's status is + not 206, then return false.
Let origin be "rewritten
" if
internalResponse's URL is null; otherwise
@@ -35122,8 +35124,7 @@ interface MediaError {
then set resource's origin to origin.
-Otherwise, if response is CORS-cross-origin, then return
- "failure
".
Otherwise, if response is CORS-cross-origin, then return false.
Otherwise, set resource's origin to
"multiple
".
Let (start, end) be the result of - extracting content-range values from - internalResponse.
If start is not byteRange[0], or if
- byteRange[1] is neither "until end
" or end,
- return "range mismatch
".
Return "success
".
Return true.
The resource fetch algorithm for a @@ -35280,7 +35273,7 @@ interface MediaError {
If the result of
verifying response given the
current media resource and byteRange is
- " Let internalResponse be response's
unsafe response. If internalResponse's status is
- 200, then return true. Though some user-agents allow playing media from origins who don't support
- range requests, this is generally discouraged as it requires buffering on the client side. If internalResponse's status is
+ 200, then return true. If internalResponse's status is
not 206, then return false.failure
", then call finalize. Otherwise,
+ false, then call finalize. Otherwise,
incrementally read
response's body given
updateMedia, processEndOfMedia, finalize, and
From 2f0fdad2ab13526c025a4796c72f4373b9aa2fe9 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
If the result of - verifying response given the - current media resource and byteRange is - false, then call finalize. Otherwise, - incrementally read - response's body given - updateMedia, processEndOfMedia, finalize, and - global.
If the result of verifying + response given the current media resource and + byteRange is false, then call finalize. Otherwise, + incrementally read response's + body given updateMedia, + processEndOfMedia, finalize, and global.
Update the media data with the contents of response's
unsafe response obtained in this fashion. response can be
From 13d5e29f8e5faf81216d2d988d24992957648d29 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
If internalResponse's status is not 206, then return false.
If the result of extracting content-range values from + internalResponse is failure, then return false.
Let origin be " If internalResponse's status is
not 206, then return false. If the result of extracting content-range values from
- internalResponse is failure, then return false. If the result of extracting content-range values from
+ internalResponse is failure, then return false. Note that the extracted values are not used, and in particular are not compared
+ to byteRange. So this step serves as syntactic validation of the Let origin be " Note that the extracted values are not used, and in particular are not compared
- to byteRange. So this step serves as syntactic validation of the rewritten
" if
internalResponse's URL is null; otherwise
internalResponse's URL's
From 22237c2d1cbcd22448063f0e06e3724784b96999 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal Content-Range
header, but if the Content-Range
values on
+ the response mismatch the Range
values on the request, that is not
+ considered a failure.rewritten
" if
internalResponse's URL is null; otherwise
From b3523188ce7a498e3a63a6c7b312190de9a47484 Mon Sep 17 00:00:00 2001
From: Domenic Denicola Cache-Control
` headerContent-Disposition
` headerContent-Language
` headerContent-Range
` headerLast-Modified
` headerRange
` headerReferer
` headerContent-Range
header, but if the Content-Range
values on
- the response mismatch the Range
values on the request, that is not
- considered a failure.Content-Range
` header, but if the `Content-Range
` values on the response mismatch the `Range
` values on the request, that is not considered a failure.
Let origin be "rewritten
" if