Skip to content

Commit 8abf39e

Browse files
committed
Moving IDLs to their own section
1 parent 12afc9d commit 8abf39e

File tree

2 files changed

+123
-100
lines changed

2 files changed

+123
-100
lines changed

index.bs

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,6 @@ partial dictionary RTCConfiguration {
115115
boolean encodedInsertableStreams = false;
116116
};
117117

118-
enum SFrameTransformRole {
119-
"encrypt",
120-
"decrypt"
121-
};
122-
123-
dictionary SFrameTransformOptions {
124-
SFrameTransformRole role = "encrypt";
125-
};
126-
127-
[Exposed=(Window,DedicatedWorker)]
128-
interface SFrameTransform {
129-
constructor(optional SFrameTransformOptions options);
130-
// FIXME: add key handling methods.
131-
};
132-
SFrameTransform includes GenericTransformStream;
133-
134-
[Exposed=(Window)]
135-
interface RTCRtpScriptTransform {
136-
constructor(Worker worker, optional object options);
137-
// FIXME: add messaging methods.
138-
};
139-
140118
typedef (SFrameTransform or RTCRtpScriptTransform) RTCRtpTransform;
141119

142120
// New methods for RTCRtpSender and RTCRtpReceiver
@@ -241,6 +219,24 @@ Similarly, if a web application sets the transform synchronously at creation of
241219

242220
# SFrameTransform # {#sframe}
243221

222+
<pre class="idl">
223+
enum SFrameTransformRole {
224+
"encrypt",
225+
"decrypt"
226+
};
227+
228+
dictionary SFrameTransformOptions {
229+
SFrameTransformRole role = "encrypt";
230+
};
231+
232+
[Exposed=(Window,DedicatedWorker)]
233+
interface SFrameTransform {
234+
constructor(optional SFrameTransformOptions options);
235+
// FIXME: add key handling methods.
236+
};
237+
SFrameTransform includes GenericTransformStream;
238+
</pre>
239+
244240
The <dfn constructor for="SFrameTransform" lt="SFrameTransform(options)"><code>new SFrameTransform(<var>options</var>)</code></dfn> constructor steps are:
245241
1. Let |transformAlgorithm| be an algorithm which takes a |frame| as input and runs the <a href="#sframe-transform-algorithm">SFrame transform algorithm</a> with |this| and |frame|.
246242
2. Set |this|.`[[transform]]` to the result of [=TransformStream/creating=] a {{TransformStream}}, with [=TransformStream/create/transformAlgorithm=] set to |transformAlgorithm|.
@@ -268,6 +264,14 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
268264

269265
# RTCRtpScriptTransform # {#scriptTransform}
270266

267+
<pre class="idl">
268+
[Exposed=(Window)]
269+
interface RTCRtpScriptTransform {
270+
constructor(Worker worker, optional object options);
271+
// FIXME: add messaging methods.
272+
};
273+
</pre>
274+
271275
The <dfn constructor for="RTCRtpScriptTransform" lt="RTCRtpScriptTransform(worker, options)"><code>new RTCRtpScriptTransform(<var>worker</var>, <var>options</var>)</code></dfn> constructor steps are:
272276
1. Set |t1| to an [=identity transform stream=].
273277
2. Set |t2| to an [=identity transform stream=].

0 commit comments

Comments
 (0)