From 5853ed4b0a3e7d79c7e2824eb010e4ce637ec35b Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Tue, 5 May 2026 10:41:28 -0400 Subject: [PATCH] Rename to RTCRtpSFrameEncrypter and RTCRtpSFrameDecrypter for consistency --- index.bs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/index.bs b/index.bs index 18bc025..f711d97 100644 --- a/index.bs +++ b/index.bs @@ -89,8 +89,8 @@ It uses an additional API on {{RTCRtpSender}} and {{RTCRtpReceiver}} to insert the processing into the pipeline.
-typedef (RTCSFrameSenderTransform or RTCRtpScriptTransform) RTCRtpSenderTransform;
-typedef (RTCSFrameReceiverTransform or RTCRtpScriptTransform) RTCRtpReceiverTransform;
+typedef (RTCRtpSFrameEncrypter or RTCRtpScriptTransform) RTCRtpSenderTransform;
+typedef (RTCRtpSFrameDecrypter or RTCRtpScriptTransform) RTCRtpReceiverTransform;
 
 // New methods for RTCRtpSender and RTCRtpReceiver
 partial interface RTCRtpSender {
@@ -261,7 +261,7 @@ enum SFrameType {
     "per-packet"
 };
 
-dictionary RTCSFrameSenderTransformOptions : SFrameTransformOptions {
+dictionary RTCRtpSFrameEncrypterOptions : SFrameTransformOptions {
     SFrameType type = "per-frame";
 };
 
@@ -279,16 +279,16 @@ interface mixin SFrameDecrypterManager {
 };
 
 [Exposed=Window]
-interface RTCSFrameSenderTransform {
-    constructor(RTCSFrameSenderTransformOptions options);
+interface RTCRtpSFrameEncrypter {
+    constructor(RTCRtpSFrameEncrypterOptions options);
 };
-RTCSFrameSenderTransform includes SFrameEncrypterManager;
+RTCRtpSFrameEncrypter includes SFrameEncrypterManager;
 
 [Exposed=Window]
-interface RTCSFrameReceiverTransform : EventTarget {
+interface RTCRtpSFrameDecrypter : EventTarget {
     constructor(SFrameTransformOptions options);
 };
-RTCSFrameReceiverTransform includes SFrameDecrypterManager;
+RTCRtpSFrameDecrypter includes SFrameDecrypterManager;
 
 [Exposed=(Window,DedicatedWorker)]
 interface SFrameEncrypterStream : EventTarget {
@@ -326,13 +326,13 @@ dictionary SFrameTransformErrorEventInit : EventInit {
 };
 
 
-The new RTCSFrameSenderTransform(options) constructor steps are:
+The new RTCRtpSFrameEncrypter(options) constructor steps are:
 1. Let |options| be the method's first argument.
 1. Run the [=SFrame initialization algorithm=] with |this| and |options|.
 1. Set |this|.`[[role]]` to 'encrypt'.
 1. Set |this|.`[[useSFrame]]` to true.
 
-The new RTCSFrameReceiverTransform(options) constructor steps are:
+The new RTCRtpSFrameDecrypter(options) constructor steps are:
 1. Let |options| be the method's first argument.
 1. Run the [=SFrame initialization algorithm=] with |this| and |options|.
 1. Set |this|.`[[role]]` to 'decrypt'.
@@ -352,8 +352,8 @@ The Set up [=this=].`[[transform]]` with [=TransformStream/set up/transformAlgorithm=] set to |transformAlgorithm|.