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
236
};
237
237
SFrameTransform includes GenericTransformStream;
238
-
</pre>
238
+
</xmp>
239
239
240
240
The <dfn constructor for="SFrameTransform" lt="SFrameTransform(options)"><code>new SFrameTransform(<var>options</var>)</code></dfn> constructor steps are:
241
241
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 +262,15 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
262
262
12. If |frame| is an {{RTCEncodedVideoFrame}}, set |frame|.{{RTCEncodedVideoFrame/data}} to |buffer|.
263
263
13. [=ReadableStream/Enqueue=] |frame| in |sframe|.`[[transform]]`.
264
264
265
+
## Methods
266
+
The <dfn method for="SFrameTransform">setEncryptionKey(|key|, |keyID|)</dfn> method steps are:
267
+
1. Let |promise| be [=a new promise=].
268
+
2. [=In parallel=], run the following steps:
269
+
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