diff --git a/source b/source index 54f7db65dfb..4a9945dcf53 100644 --- a/source +++ b/source @@ -33762,10 +33762,10 @@ interface HTMLMediaElement : HTMLElement {
-A media resource has an associated
- origin, which is either "none
",
- "multiple
", "rewritten
", or an
- origin. It is initially set to "none
".
A media resource has an associated origin, which is either "none
",
+ "multiple
", "rewritten
", or an origin.
+ It is initially set to "none
".
A media resource can have multiple audio and video tracks. For the purposes of a media element, the video data of the media resource is only that of the @@ -34581,9 +34581,9 @@ interface MediaError {
To verify a media response given a response
- response, a media resource resource, and
- "entire resource
" or a
- (number, number or "until end
") tuple byteRange:
entire resource
" or a (number, number or "until end
")
+ tuple byteRange:
If response is a network error, then return false.
If byteRange is "entire resource
", then return
true.
Let internalResponse be response's - unsafe response.
Let internalResponse be response's unsafe + response.
If internalResponse's status is not 206, then return false.
Let origin be "rewritten
" if
internalResponse's URL is null; otherwise
- internalResponse's URL's
- origin.
Let previousOrigin be resource's - origin.
Let previousOrigin be resource's origin.
If any of the following conditions are true:
@@ -34629,13 +34629,12 @@ interface MediaError { by being patched together with other responses from different origins.Let (start, end) be the result of - extracting content-range values from +
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 false.
If start is not byteRange[0], or if byteRange[1] is
+ neither "until end
" or end, return false.
Return true.
audio
element, or "video
"
otherwise.
- Let request be the result of creating a potential-CORS request given
- current media resource's URL record, destination, and the
- current state of media element's
- crossorigin
content attribute.
Let request be the result of creating a potential-CORS request given current media resource's
+ URL record, destination, and the current state of the media
+ element's crossorigin
content
+ attribute.
Set request's client to the media element's node document's relevant settings object.
Let byteRange, which is "entire resource
" or a
- (number, number or "until end
") tuple, be the byte range required to satisfy
- missing data in media data. This value is implementation-defined
- and may rely on codec, network conditions or other heuristics. The user-agent may determine
- to fetch the resource in full, in which case byteRange would be
- "entire resource
", to fetch from a byte offset until the end,
- in which case byteRange would be
- (number, "until end
"), or to fetch a range between two byte offsets,
- im which case byteRange would be a (number, number) tuple representing the two
+ (number, number or "until end
") tuple, be the byte range required to
+ satisfy missing data in media data. This value is
+ implementation-defined and may rely on codec, network conditions or other
+ heuristics. The user-agent may determine to fetch the resource in full, in which case
+ byteRange would be "entire resource
"; to fetch from a byte
+ offset until the end, in which case byteRange would be a (number, "until end
") tuple; or to fetch a range between two byte offsets, in which
+ case byteRange would be a (number, number) tuple representing the two
offsets.
If byteRange is not "entire resource
", then:
If byteRange[1] is "until end
" then
- add a range header to request given
- byteRange[0].
If byteRange[1] is "until end
", then add a
+ range header to request given byteRange[0].
Otherwise, add a range header to request given byteRange[0] and byteRange[1].
Fetch request, with - processResponse set to the following steps given - response response:
+Fetch request, with processResponse set to the following steps given response response:
Let global be the media element's - node document's relevant global object.
Let global be the media element's node + document's relevant global object.
Let updateMedia be to queue a media element task given - the media element to run the first appropriate steps from the - media data processing steps list below. (A new task is used for - this so that the work described below occurs relative to the appropriate - media element event task source rather than using the - networking task source.)
+Let updateMedia be to queue a media element task given the + media element to run the first appropriate steps from the media data + processing steps list below. (A new task is used for this so that the work + described below occurs relative to the appropriate media element event task + source rather than using the networking task source.)
Let finalize be to finalize and report timing with response, global, and destination, and call @@ -34768,17 +34766,17 @@ interface MediaError {
If the fetching process has completes without errors, including decoding the media data, and if all of the data is available to the user agent without network - access, then, the user agent must move on to the final step below. - This might never happen, e.g. when streaming an infinite resource such as web radio, or - if the resource is longer than the user agent's ability to cache data.
+ access, then, the user agent must move on to the final step below. This might + never happen, e.g. when streaming an infinite resource such as web radio, or if the + resource is longer than the user agent's ability to cache data.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, + 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