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|.