|
9 | 9 | "rationale": "if", |
10 | 10 | "steps": [ |
11 | 11 | { |
12 | | - "html": "<p>If <var>init</var>.<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#dom-mediastreamtrackprocessorinit-track\" id=\"ref-for-dom-mediastreamtrackprocessorinit-track\">track</a></code> is not a valid <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack⑦\">MediaStreamTrack</a></code>,\nthrow a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror\">TypeError</a></code>.</p>" |
| 12 | + "html": "<p>If <var>init</var>.<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#dom-mediastreamtrackprocessorinit-track\" id=\"ref-for-dom-mediastreamtrackprocessorinit-track\">track</a></code> is not a valid <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack⑧\">MediaStreamTrack</a></code>,\nthrow a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror\">TypeError</a></code>.</p>" |
13 | 13 | }, |
14 | 14 | { |
15 | 15 | "html": "<p>Let <var>maxBufferSize</var> be 1.</p>" |
|
52 | 52 | { |
53 | 53 | "name": "MediaStreamTrackProcessor/readable", |
54 | 54 | "href": "https://www.w3.org/TR/mediacapture-transform/#dom-mediastreamtrackprocessor-readable", |
55 | | - "html": "Allows reading the frames delivered by the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack⑧\">MediaStreamTrack</a></code> stored\nin the <code>[[track]]</code> internal slot. This attribute is created the first time it is invoked\naccording to the following steps:", |
| 55 | + "html": "Allows reading the frames delivered by the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack⑨\">MediaStreamTrack</a></code> stored\nin the <code>[[track]]</code> internal slot. This attribute is created the first time it is invoked\naccording to the following steps:", |
56 | 56 | "rationale": "initialize", |
57 | 57 | "steps": [ |
58 | 58 | { |
|
66 | 66 | { |
67 | 67 | "name": "processorPull", |
68 | 68 | "href": "https://www.w3.org/TR/mediacapture-transform/#processorpull", |
69 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorpull\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorPull</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>processor</var> as input. It is defined by the following steps:", |
| 69 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorpull\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorPull</dfn> algorithm is given a <var>processor</var> as input. It is defined by the following steps:", |
70 | 70 | "rationale": "increment", |
71 | 71 | "steps": [ |
72 | 72 | { |
|
83 | 83 | { |
84 | 84 | "name": "maybeReadFrame", |
85 | 85 | "href": "https://www.w3.org/TR/mediacapture-transform/#maybereadframe", |
86 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"maybereadframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">maybeReadFrame</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>processor</var> as input. It is defined by the following steps:", |
| 86 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"maybereadframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">maybeReadFrame</dfn> algorithm is given a <var>processor</var> as input. It is defined by the following steps:", |
87 | 87 | "rationale": "if", |
88 | 88 | "steps": [ |
89 | 89 | { |
|
109 | 109 | { |
110 | 110 | "name": "processorCancel", |
111 | 111 | "href": "https://www.w3.org/TR/mediacapture-transform/#processorcancel", |
112 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorcancel\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorCancel</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
| 112 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorcancel\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorCancel</dfn> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
113 | 113 | "rationale": "run", |
114 | 114 | "steps": [ |
115 | 115 | { |
|
123 | 123 | { |
124 | 124 | "name": "processorClose", |
125 | 125 | "href": "https://www.w3.org/TR/mediacapture-transform/#processorclose", |
126 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorclose\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorClose</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
| 126 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"processorclose\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">processorClose</dfn> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
127 | 127 | "rationale": "if", |
128 | 128 | "steps": [ |
129 | 129 | { |
|
146 | 146 | { |
147 | 147 | "name": "handleNewFrame", |
148 | 148 | "href": "https://www.w3.org/TR/mediacapture-transform/#handlenewframe", |
149 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"handlenewframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">handleNewFrame</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
| 149 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"handlenewframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">handleNewFrame</dfn> algorithm is given a <var>processor</var> as input.\nIt is defined by running the following steps:", |
150 | 150 | "rationale": "if", |
151 | 151 | "steps": [ |
152 | 152 | { |
|
170 | 170 | ] |
171 | 171 | }, |
172 | 172 | { |
173 | | - "html": "The <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://streams.spec.whatwg.org/#writablestream\" id=\"ref-for-writablestream①\">WritableStream</a></code> accepts <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe②\">VideoFrame</a></code> objects.\nWhen a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe③\">VideoFrame</a></code> is written to <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#dom-videotrackgenerator-writable\" id=\"ref-for-dom-videotrackgenerator-writable②\">writable</a></code>,\nthe frame’s <code>close()</code> method is automatically invoked, so that its internal\nresources are no longer accessible from JavaScript.", |
| 173 | + "html": "The <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://streams.spec.whatwg.org/#writablestream\" id=\"ref-for-writablestream①\">WritableStream</a></code> accepts <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe④\">VideoFrame</a></code> objects.\nWhen a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe⑤\">VideoFrame</a></code> is written to <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#dom-videotrackgenerator-writable\" id=\"ref-for-dom-videotrackgenerator-writable②\">writable</a></code>,\nthe frame’s <code>close()</code> method is automatically invoked, so that its internal\nresources are no longer accessible from JavaScript.", |
174 | 174 | "rationale": "let", |
175 | 175 | "steps": [ |
176 | 176 | { |
177 | 177 | "html": "<p>Let <var>generator</var> be a new <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#videotrackgenerator\" id=\"ref-for-videotrackgenerator③\">VideoTrackGenerator</a></code> object.</p>" |
178 | 178 | }, |
179 | 179 | { |
180 | | - "html": "<p>Let <var>track</var> be a newly <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/mediacapture-streams/#dfn-create-a-mediastreamtrack\" id=\"ref-for-dfn-create-a-mediastreamtrack\">created</a> <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack①④\">MediaStreamTrack</a></code> with <var>source</var> set to <var>generator</var> and <var>tieSourceToContext</var> set to <code>false</code>.</p>" |
| 180 | + "html": "<p>Let <var>track</var> be a newly <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/mediacapture-streams/#dfn-create-a-mediastreamtrack\" id=\"ref-for-dfn-create-a-mediastreamtrack\">created</a> <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-streams/#dom-mediastreamtrack\" id=\"ref-for-dom-mediastreamtrack①⑤\">MediaStreamTrack</a></code> with <var>source</var> set to <var>generator</var> and <var>tieSourceToContext</var> set to <code>false</code>.</p>" |
181 | 181 | }, |
182 | 182 | { |
183 | 183 | "html": "<p>Initialize <var>generator</var>.<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/mediacapture-transform/#dom-videotrackgenerator-track\" id=\"ref-for-dom-videotrackgenerator-track④\">track</a></code> to <var>track</var>.</p>" |
|
204 | 204 | { |
205 | 205 | "name": "writeFrame", |
206 | 206 | "href": "https://www.w3.org/TR/mediacapture-transform/#writeframe", |
207 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"writeframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">writeFrame</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>generator</var> and a <var>frame</var> as input. It is defined by running the following steps:", |
| 207 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"writeframe\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">writeFrame</dfn> algorithm is given a <var>generator</var> and a <var>frame</var> as input. It is defined by running the following steps:", |
208 | 208 | "rationale": "if", |
209 | 209 | "steps": [ |
210 | 210 | { |
211 | | - "html": "<p>If <var>frame</var> is not a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe④\">VideoFrame</a></code> object, return <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#a-promise-rejected-with\" id=\"ref-for-a-promise-rejected-with\">a promise rejected with</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror①\">TypeError</a></code>.</p>" |
| 211 | + "html": "<p>If <var>frame</var> is not a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://w3c.github.io/webcodecs/#videoframe\" id=\"ref-for-videoframe⑥\">VideoFrame</a></code> object, return <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#a-promise-rejected-with\" id=\"ref-for-a-promise-rejected-with\">a promise rejected with</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror①\">TypeError</a></code>.</p>" |
212 | 212 | }, |
213 | 213 | { |
214 | 214 | "html": "<p>If the value of <var>frame</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://html.spec.whatwg.org/multipage/structured-data.html#detached\" id=\"ref-for-detached\">[[Detached]]</a></code> internal slot is true, return <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#a-promise-rejected-with\" id=\"ref-for-a-promise-rejected-with①\">a promise rejected with</a> a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror②\">TypeError</a></code>.</p>" |
|
236 | 236 | { |
237 | 237 | "name": "closeWritable", |
238 | 238 | "href": "https://www.w3.org/TR/mediacapture-transform/#closewritable", |
239 | | - "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"closewritable\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">closeWritable</dfn><span style=\"position: relative; height: 0px;\"></span><span style=\"position: relative; height: 0px;\"></span> algorithm is given a <var>generator</var> as input.\nIt is defined by running the following steps.", |
| 239 | + "html": "The <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"closewritable\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">closeWritable</dfn> algorithm is given a <var>generator</var> as input.\nIt is defined by running the following steps.", |
240 | 240 | "rationale": "for", |
241 | 241 | "steps": [ |
242 | 242 | { |
|
0 commit comments