Skip to content

Commit 1bc1946

Browse files
authored
Add a new parameter to RTCRtpScriptTransform constructor to allow transferring objects in the options parameter (#96)
1 parent fdebc94 commit 1bc1946

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.bs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,19 +306,18 @@ interface RTCRtpScriptTransformer {
306306

307307
[Exposed=Window]
308308
interface RTCRtpScriptTransform {
309-
constructor(Worker worker, optional any options);
310-
// FIXME: add messaging methods.
309+
constructor(Worker worker, optional any options, optional sequence<object> transfer);
311310
};
312311
</pre>
313312

314313
## Operations ## {#RTCRtpScriptTransform-operations}
315314

316-
The <dfn constructor for="RTCRtpScriptTransform" lt="RTCRtpScriptTransform(worker, options)"><code>new RTCRtpScriptTransform(<var>worker</var>, <var>options</var>)</code></dfn> constructor steps are:
315+
The <dfn constructor for="RTCRtpScriptTransform" lt="RTCRtpScriptTransform(worker, options)"><code>new RTCRtpScriptTransform(|worker|, |options|, |transfer|)</code></dfn> constructor steps are:
317316
1. Set |t1| to an [=identity transform stream=].
318317
2. Set |t2| to an [=identity transform stream=].
319318
3. Set |this|.`[[writable]]` to |t1|.`[[writable]]`.
320319
4. Set |this|.`[[readable]]` to |t2|.`[[readable]]`.
321-
5. Let |serializedOptions| be the result of [$StructuredSerialize$](|options|).
320+
5. Let |serializedOptions| be the result of [$StructuredSerializeWithTransfer$](|options|, |transfer|).
322321
6. Let |serializedReadable| be the result of [$StructuredSerializeWithTransfer$](|t1|.`[[readable]]`, « |t1|.`[[readable]]` »).
323322
7. Let |serializedWritable| be the result of [$StructuredSerializeWithTransfer$](|t2|.`[[writable]]`, « |t2|.`[[writable]]` »).
324323
8. [=Queue a task=] on the DOM manipulation [=task source=] |worker|'s global scope to run the following steps:

0 commit comments

Comments
 (0)