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
Copy file name to clipboardExpand all lines: index.bs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -252,14 +252,14 @@ The SFrame transform algorithm, given |sframe| as a SFrameTransform object and |
252
252
2. If |frame|.`[[rtcObject]]` is a {{RTCRtpSender}}, set |role| to 'encrypt'.
253
253
3. If |frame|.`[[rtcObject]]` is a {{RTCRtpReceiver}}, set |role| to 'decrypt'.
254
254
4. Let |data| be undefined.
255
-
5. If |frame| is an ArrayBuffer, set |data| to |frame|. // FIXME Support BufferSource
256
-
6. If |frame| is an{{RTCEncodedAudioFrame}}, set |data| to |frame|.{{RTCEncodedAudioFrame/data}}
257
-
7. If |frame| is an{{RTCEncodedVideoFrame}}, set |data| to |frame|.{{RTCEncodedVideoFrame/data}}
255
+
5. If |frame| is a {{BufferSource}}, set |data| to |frame|.
256
+
6. If |frame| is a{{RTCEncodedAudioFrame}}, set |data| to |frame|.{{RTCEncodedAudioFrame/data}}
257
+
7. If |frame| is a{{RTCEncodedVideoFrame}}, set |data| to |frame|.{{RTCEncodedVideoFrame/data}}
258
258
8. If |data| is undefined, abort these steps.
259
-
9. Let |buffer| be the result of running the SFrame algorithm with |data| and |role| as parameters. This algorithm is defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a>.
260
-
10. If |frame| is an ArrayBuffer, set |frame| to |buffer|.
261
-
11. If |frame| is an{{RTCEncodedAudioFrame}}, set |frame|.{{RTCEncodedAudioFrame/data}} to |buffer|.
262
-
12. If |frame| is an{{RTCEncodedVideoFrame}}, set |frame|.{{RTCEncodedVideoFrame/data}} to |buffer|.
259
+
9. Let |buffer| be the result of running the SFrame algorithm with |data| and |role| as parameters. This algorithm is defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a> and returns an {{ArrayBuffer}}.
260
+
10. If |frame| is a {{BufferSource}}, set |frame| to |buffer|.
261
+
11. If |frame| is a{{RTCEncodedAudioFrame}}, set |frame|.{{RTCEncodedAudioFrame/data}} to |buffer|.
262
+
12. If |frame| is a{{RTCEncodedVideoFrame}}, set |frame|.{{RTCEncodedVideoFrame/data}} to |buffer|.
263
263
13. [=ReadableStream/Enqueue=] |frame| in |sframe|.`[[transform]]`.
0 commit comments