Skip to content

Commit b72fe28

Browse files
Add a new parameter to RTCRtpScriptTransform constructor to allow transferring objects in the options parameter (#96)
SHA: 1bc1946 Reason: push, by @youennf Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent cd43b43 commit b72fe28

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

index.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED" rel="stylesheet" type="text/css">
88
<meta content="Bikeshed version c5fd42b86, updated Mon Apr 5 16:27:33 2021 -0700" name="generator">
99
<link href="https://w3c.github.io/webrtc-encoded-transform/" rel="canonical">
10-
<meta content="fdebc942394482418bc31bf13f99d58fba5f151a" name="document-revision">
10+
<meta content="1bc19467da0cc2025f712bfb4982abc832b0c002" name="document-revision">
1111
<style>/* style-autolinks */
1212

1313
.css.css, .property.property, .descriptor.descriptor {
@@ -568,7 +568,7 @@
568568
<div class="head">
569569
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
570570
<h1 class="p-name no-ref" id="title">WebRTC Encoded Transform</h1>
571-
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2021-04-08">8 April 2021</time></span></h2>
571+
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2021-04-12">12 April 2021</time></span></h2>
572572
<div data-fill-with="spec-metadata">
573573
<dl>
574574
<dt>This version:
@@ -1011,12 +1011,11 @@ <h2 class="heading settled" data-level="5" id="scriptTransform"><span class="sec
10111011

10121012
[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed" id="ref-for-Exposed⑤"><c- g>Exposed</c-></a>=<c- n>Window</c->]
10131013
<c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="rtcrtpscripttransform"><code><c- g>RTCRtpScriptTransform</c-></code></dfn> {
1014-
<a class="idl-code" data-link-type="constructor" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform" id="ref-for-dom-rtcrtpscripttransform-rtcrtpscripttransform"><c- g>constructor</c-></a>(<a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/workers.html#worker" id="ref-for-worker"><c- n>Worker</c-></a> <dfn class="idl-code" data-dfn-for="RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options), RTCRtpScriptTransform/constructor(worker, options), RTCRtpScriptTransform/RTCRtpScriptTransform(worker), RTCRtpScriptTransform/constructor(worker)" data-dfn-type="argument" data-export id="dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-worker"><code><c- g>worker</c-></code><a class="self-link" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-worker"></a></dfn>, <c- b>optional</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-any" id="ref-for-idl-any①"><c- b>any</c-></a> <dfn class="idl-code" data-dfn-for="RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options), RTCRtpScriptTransform/constructor(worker, options), RTCRtpScriptTransform/RTCRtpScriptTransform(worker), RTCRtpScriptTransform/constructor(worker)" data-dfn-type="argument" data-export id="dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-options"><code><c- g>options</c-></code><a class="self-link" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-options"></a></dfn>);
1015-
// FIXME: add messaging methods.
1014+
<a class="idl-code" data-link-type="constructor" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform" id="ref-for-dom-rtcrtpscripttransform-rtcrtpscripttransform"><c- g>constructor</c-></a>(<a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/workers.html#worker" id="ref-for-worker"><c- n>Worker</c-></a> <dfn class="idl-code" data-dfn-for="RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options, transfer), RTCRtpScriptTransform/constructor(worker, options, transfer), RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options), RTCRtpScriptTransform/constructor(worker, options), RTCRtpScriptTransform/RTCRtpScriptTransform(worker), RTCRtpScriptTransform/constructor(worker)" data-dfn-type="argument" data-export id="dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-worker"><code><c- g>worker</c-></code><a class="self-link" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-worker"></a></dfn>, <c- b>optional</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-any" id="ref-for-idl-any①"><c- b>any</c-></a> <dfn class="idl-code" data-dfn-for="RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options, transfer), RTCRtpScriptTransform/constructor(worker, options, transfer), RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options), RTCRtpScriptTransform/constructor(worker, options), RTCRtpScriptTransform/RTCRtpScriptTransform(worker), RTCRtpScriptTransform/constructor(worker)" data-dfn-type="argument" data-export id="dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-options"><code><c- g>options</c-></code><a class="self-link" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-options"></a></dfn>, <c- b>optional</c-> <a data-link-type="dfn" href="https://heycam.github.io/webidl/#idl-sequence" id="ref-for-idl-sequence③"><c- b>sequence</c-></a>&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-object" id="ref-for-idl-object"><c- b>object</c-></a>> <dfn class="idl-code" data-dfn-for="RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options, transfer), RTCRtpScriptTransform/constructor(worker, options, transfer), RTCRtpScriptTransform/RTCRtpScriptTransform(worker, options), RTCRtpScriptTransform/constructor(worker, options), RTCRtpScriptTransform/RTCRtpScriptTransform(worker), RTCRtpScriptTransform/constructor(worker)" data-dfn-type="argument" data-export id="dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-transfer"><code><c- g>transfer</c-></code><a class="self-link" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-transfer"></a></dfn>);
10161015
};
10171016
</pre>
10181017
<h3 class="heading settled" data-level="5.1" id="RTCRtpScriptTransform-operations"><span class="secno">5.1. </span><span class="content">Operations</span><a class="self-link" href="#RTCRtpScriptTransform-operations"></a></h3>
1019-
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="RTCRtpScriptTransform" data-dfn-type="constructor" data-export data-lt="RTCRtpScriptTransform(worker, options)|constructor(worker, options)|RTCRtpScriptTransform(worker)|constructor(worker)" id="dom-rtcrtpscripttransform-rtcrtpscripttransform"><code>new RTCRtpScriptTransform(<var>worker</var>, <var>options</var>)</code></dfn> constructor steps are:</p>
1018+
<p>The <dfn class="dfn-paneled idl-code" data-dfn-for="RTCRtpScriptTransform" data-dfn-type="constructor" data-export data-lt="RTCRtpScriptTransform(worker, options, transfer)|constructor(worker, options, transfer)|RTCRtpScriptTransform(worker, options)|constructor(worker, options)|RTCRtpScriptTransform(worker)|constructor(worker)" id="dom-rtcrtpscripttransform-rtcrtpscripttransform"><code>new RTCRtpScriptTransform(<var>worker</var>, <var>options</var>, <var>transfer</var>)</code></dfn> constructor steps are:</p>
10201019
<ol>
10211020
<li data-md>
10221021
<p>Set <var>t1</var> to an <a data-link-type="dfn" href="https://streams.spec.whatwg.org/#identity-transform-stream" id="ref-for-identity-transform-stream①">identity transform stream</a>.</p>
@@ -1027,11 +1026,11 @@ <h3 class="heading settled" data-level="5.1" id="RTCRtpScriptTransform-operation
10271026
<li data-md>
10281027
<p>Set <var>this</var>.<code>[[readable]]</code> to <var>t2</var>.<code>[[readable]]</code>.</p>
10291028
<li data-md>
1030-
<p>Let <var>serializedOptions</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserialize" id="ref-for-structuredserialize">StructuredSerialize</a>(<var>options</var>).</p>
1029+
<p>Let <var>serializedOptions</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer" id="ref-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</a>(<var>options</var>, <var>transfer</var>).</p>
10311030
<li data-md>
1032-
<p>Let <var>serializedReadable</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer" id="ref-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</a>(<var>t1</var>.<code>[[readable]]</code>, « <var>t1</var>.<code>[[readable]]</code> »).</p>
1031+
<p>Let <var>serializedReadable</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer" id="ref-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</a>(<var>t1</var>.<code>[[readable]]</code>, « <var>t1</var>.<code>[[readable]]</code> »).</p>
10331032
<li data-md>
1034-
<p>Let <var>serializedWritable</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer" id="ref-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</a>(<var>t2</var>.<code>[[writable]]</code>, « <var>t2</var>.<code>[[writable]]</code> »).</p>
1033+
<p>Let <var>serializedWritable</var> be the result of <a data-link-type="abstract-op" href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer" id="ref-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</a>(<var>t2</var>.<code>[[writable]]</code>, « <var>t2</var>.<code>[[writable]]</code> »).</p>
10351034
<li data-md>
10361035
<p><a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-task" id="ref-for-queue-a-task①">Queue a task</a> on the DOM manipulation <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/webappapis.html#task-source" id="ref-for-task-source">task source</a> <var>worker</var>’s global scope to run the following steps:</p>
10371036
<ol>
@@ -1137,6 +1136,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
11371136
<li><a href="#dom-sframetransform-sframetransform">constructor(options)</a><span>, in §4</span>
11381137
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">constructor(worker)</a><span>, in §5.1</span>
11391138
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">constructor(worker, options)</a><span>, in §5.1</span>
1139+
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">constructor(worker, options, transfer)</a><span>, in §5.1</span>
11401140
<li>
11411141
contributingSources
11421142
<ul>
@@ -1191,6 +1191,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
11911191
<li><a href="#rtcrtpscripttransformer">RTCRtpScriptTransformer</a><span>, in §5</span>
11921192
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">RTCRtpScriptTransform(worker)</a><span>, in §5.1</span>
11931193
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">RTCRtpScriptTransform(worker, options)</a><span>, in §5.1</span>
1194+
<li><a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform">RTCRtpScriptTransform(worker, options, transfer)</a><span>, in §5.1</span>
11941195
<li><a href="#typedefdef-rtcrtptransform">RTCRtpTransform</a><span>, in §3</span>
11951196
<li><a href="#rtctransformevent">RTCTransformEvent</a><span>, in §5</span>
11961197
<li><a href="#dom-sframetransform-setencryptionkey">setEncryptionKey(key)</a><span>, in §4.2</span>
@@ -1282,16 +1283,10 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
12821283
<li><a href="#ref-for-structureddeserialize">5.1. Operations</a> <a href="#ref-for-structureddeserialize①">(2)</a> <a href="#ref-for-structureddeserialize②">(3)</a>
12831284
</ul>
12841285
</aside>
1285-
<aside class="dfn-panel" data-for="term-for-structuredserialize">
1286-
<a href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserialize">https://html.spec.whatwg.org/multipage/structured-data.html#structuredserialize</a><b>Referenced in:</b>
1287-
<ul>
1288-
<li><a href="#ref-for-structuredserialize">5.1. Operations</a>
1289-
</ul>
1290-
</aside>
12911286
<aside class="dfn-panel" data-for="term-for-structuredserializewithtransfer">
12921287
<a href="https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer">https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializewithtransfer</a><b>Referenced in:</b>
12931288
<ul>
1294-
<li><a href="#ref-for-structuredserializewithtransfer">5.1. Operations</a> <a href="#ref-for-structuredserializewithtransfer①">(2)</a>
1289+
<li><a href="#ref-for-structuredserializewithtransfer">5.1. Operations</a> <a href="#ref-for-structuredserializewithtransfer①">(2)</a> <a href="#ref-for-structuredserializewithtransfer②">(3)</a>
12951290
</ul>
12961291
</aside>
12971292
<aside class="dfn-panel" data-for="term-for-worker">
@@ -1509,6 +1504,12 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
15091504
<li><a href="#ref-for-idl-long-long">5. RTCRtpScriptTransform</a> <a href="#ref-for-idl-long-long①">(2)</a>
15101505
</ul>
15111506
</aside>
1507+
<aside class="dfn-panel" data-for="term-for-idl-object">
1508+
<a href="https://heycam.github.io/webidl/#idl-object">https://heycam.github.io/webidl/#idl-object</a><b>Referenced in:</b>
1509+
<ul>
1510+
<li><a href="#ref-for-idl-object">5. RTCRtpScriptTransform</a>
1511+
</ul>
1512+
</aside>
15121513
<aside class="dfn-panel" data-for="term-for-reject">
15131514
<a href="https://heycam.github.io/webidl/#reject">https://heycam.github.io/webidl/#reject</a><b>Referenced in:</b>
15141515
<ul>
@@ -1524,7 +1525,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="c
15241525
<aside class="dfn-panel" data-for="term-for-idl-sequence">
15251526
<a href="https://heycam.github.io/webidl/#idl-sequence">https://heycam.github.io/webidl/#idl-sequence</a><b>Referenced in:</b>
15261527
<ul>
1527-
<li><a href="#ref-for-idl-sequence">5. RTCRtpScriptTransform</a> <a href="#ref-for-idl-sequence①">(2)</a> <a href="#ref-for-idl-sequence②">(3)</a>
1528+
<li><a href="#ref-for-idl-sequence">5. RTCRtpScriptTransform</a> <a href="#ref-for-idl-sequence①">(2)</a> <a href="#ref-for-idl-sequence②">(3)</a> <a href="#ref-for-idl-sequence③">(4)</a>
15281529
</ul>
15291530
</aside>
15301531
<aside class="dfn-panel" data-for="term-for-this">
@@ -1609,7 +1610,6 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
16091610
<li><span class="dfn-paneled" id="term-for-dedicatedworkerglobalscope">DedicatedWorkerGlobalScope</span>
16101611
<li><span class="dfn-paneled" id="term-for-eventhandler">EventHandler</span>
16111612
<li><span class="dfn-paneled" id="term-for-structureddeserialize">StructuredDeserialize</span>
1612-
<li><span class="dfn-paneled" id="term-for-structuredserialize">StructuredSerialize</span>
16131613
<li><span class="dfn-paneled" id="term-for-structuredserializewithtransfer">StructuredSerializeWithTransfer</span>
16141614
<li><span class="dfn-paneled" id="term-for-worker">Worker</span>
16151615
<li><span class="dfn-paneled" id="term-for-in-parallel">in parallel</span>
@@ -1661,6 +1661,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
16611661
<li><span class="dfn-paneled" id="term-for-idl-boolean">boolean</span>
16621662
<li><span class="dfn-paneled" id="term-for-idl-long">long</span>
16631663
<li><span class="dfn-paneled" id="term-for-idl-long-long">long long</span>
1664+
<li><span class="dfn-paneled" id="term-for-idl-object">object</span>
16641665
<li><span class="dfn-paneled" id="term-for-reject">reject</span>
16651666
<li><span class="dfn-paneled" id="term-for-resolve">resolve</span>
16661667
<li><span class="dfn-paneled" id="term-for-idl-sequence">sequence</span>
@@ -1686,7 +1687,7 @@ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">N
16861687
<dt id="biblio-html">[HTML]
16871688
<dd>Anne van Kesteren; et al. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
16881689
<dt id="biblio-mediacapture-streams">[MEDIACAPTURE-STREAMS]
1689-
<dd>Cullen Jennings; et al. <a href="https://www.w3.org/TR/mediacapture-streams/">Media Capture and Streams</a>. 22 March 2021. CR. URL: <a href="https://www.w3.org/TR/mediacapture-streams/">https://www.w3.org/TR/mediacapture-streams/</a>
1690+
<dd>Cullen Jennings; et al. <a href="https://www.w3.org/TR/mediacapture-streams/">Media Capture and Streams</a>. 8 April 2021. CR. URL: <a href="https://www.w3.org/TR/mediacapture-streams/">https://www.w3.org/TR/mediacapture-streams/</a>
16901691
<dt id="biblio-rfc2119">[RFC2119]
16911692
<dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
16921693
<dt id="biblio-streams">[STREAMS]
@@ -1813,8 +1814,7 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
18131814

18141815
[<a class="idl-code" data-link-type="extended-attribute" href="https://heycam.github.io/webidl/#Exposed"><c- g>Exposed</c-></a>=<c- n>Window</c->]
18151816
<c- b>interface</c-> <a href="#rtcrtpscripttransform"><code><c- g>RTCRtpScriptTransform</c-></code></a> {
1816-
<a class="idl-code" data-link-type="constructor" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform"><c- g>constructor</c-></a>(<a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/workers.html#worker"><c- n>Worker</c-></a> <a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-worker"><code><c- g>worker</c-></code></a>, <c- b>optional</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-any"><c- b>any</c-></a> <a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-options"><code><c- g>options</c-></code></a>);
1817-
// FIXME: add messaging methods.
1817+
<a class="idl-code" data-link-type="constructor" href="#dom-rtcrtpscripttransform-rtcrtpscripttransform"><c- g>constructor</c-></a>(<a data-link-type="idl-name" href="https://html.spec.whatwg.org/multipage/workers.html#worker"><c- n>Worker</c-></a> <a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-worker"><code><c- g>worker</c-></code></a>, <c- b>optional</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-any"><c- b>any</c-></a> <a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-options"><code><c- g>options</c-></code></a>, <c- b>optional</c-> <a data-link-type="dfn" href="https://heycam.github.io/webidl/#idl-sequence"><c- b>sequence</c-></a>&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-object"><c- b>object</c-></a>> <a href="#dom-rtcrtpscripttransform-rtcrtpscripttransform-worker-options-transfer-transfer"><code><c- g>transfer</c-></code></a>);
18181818
};
18191819

18201820
</pre>

0 commit comments

Comments
 (0)