You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Promise<undefined> setEncryptionKey(CryptoKey key, optional unsigned long long keyID);
236
237
};
237
238
SFrameTransform includes GenericTransformStream;
238
-
</pre>
239
+
</xmp>
239
240
240
241
The <dfn constructor for="SFrameTransform" lt="SFrameTransform(options)"><code>new SFrameTransform(<var>options</var>)</code></dfn> constructor steps are:
241
242
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|.
@@ -262,6 +263,15 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
262
263
12. If |frame| is an {{RTCEncodedVideoFrame}}, set |frame|.{{RTCEncodedVideoFrame/data}} to |buffer|.
263
264
13. [=ReadableStream/Enqueue=] |frame| in |sframe|.`[[transform]]`.
264
265
266
+
## Methods
267
+
The <dfn method for="SFrameTransform">setEncryptionKey(|key|, |keyID|)</dfn> method steps are:
268
+
1. Let |promise| be [=a new promise=].
269
+
2. [=In parallel=], run the following steps:
270
+
1. Set |key| with its optional |keyID| as key material to use for the SFrame transform algorithm, as defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a>.
0 commit comments