Skip to content

Commit 646df55

Browse files
committed
Remove script transform variant API
1 parent bc9ae2d commit 646df55

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

index.bs

+1-22
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,14 @@ interface RTCEncodedAudioFrame {
109109
RTCEncodedAudioFrameMetadata getMetadata();
110110
};
111111

112-
113-
// New fields in RTCConfiguration
114-
partial dictionary RTCConfiguration {
115-
boolean encodedInsertableStreams = false;
116-
};
117-
118112
typedef (SFrameTransform or RTCRtpScriptTransform) RTCRtpTransform;
119113

120114
// New methods for RTCRtpSender and RTCRtpReceiver
121115
partial interface RTCRtpSender {
122-
RTCInsertableStreams createEncodedStreams();
123116
attribute RTCRtpTransform? transform;
124117
};
125118

126119
partial interface RTCRtpReceiver {
127-
RTCInsertableStreams createEncodedStreams();
128120
attribute RTCRtpTransform? transform;
129121
};
130122
</pre>
@@ -139,32 +131,19 @@ argument, ensure that the codec is disabled and produces no output.
139131
### Stream creation ### {#stream-creation}
140132

141133
At construction of each {{RTCRtpSender}} or {{RTCRtpReceiver}}, run the following steps:
142-
1. Initialize [=this=].`[[Streams]]` to null.
143134
2. Initialize [=this=].`[[transform]]` to null.
144135
3. Initialize [=this=].`[[readable]]` to the result of <a dfn for="ReadableStream">creating</a> a {{ReadableStream}}. `[[readable]]` is provided frames using the [=readEncodedData=] algorithm given |this| as parameter.
145136
4. Set [=this=].`[[readable]]`.`[[owner]]` to |this|.
146137
5. Initialize [=this=].`[[writable]]` to the result of [=WritableStream/creating=] a {{WritableStream}}, its [=WritableStream/create/writeAlgorithm=] set to [=writeEncodedData=] given |this| as parameter.
147138
6. Set [=this=].`[[writable]]`.`[[owner]]` to |this|.
148139
7. Initialize [=this=].`[[pipeToController]]` to null.
149140
8. Initialize [=this=].`[[lastReceivedFrameTimestamp]]` to zero.
150-
9. If the {{RTCPeerConnection}}'s configuration does not have {{RTCConfiguration/encodedInsertableStreams}} set to "true", queue a task to run the following steps:
141+
9. [=Queue a task=] to run the following steps:
151142
1. If [=this=].`[[pipeToController]]` is not null, abort these steps.
152143
2. Set [=this=].`[[pipeToController]]` to a new {{AbortController}}.
153144
<!-- FIXME: Use pipeTo algorithm when available. -->
154145
3. Call <a href="https://streams.spec.whatwg.org/#readable-stream-pipe-to">pipeTo</a> with [=this=].`[[readable]]`, [=this=].`[[writable]]`, preventClose equal to true, preventAbort equal to true, preventCancel equal to true and [=this=].`[[pipeToController]]`.signal.
155146

156-
The <dfn method for="RTCRtpSender">createEncodedStreams()</dfn> method steps are:
157-
158-
1. If the {{RTCPeerConnection}}'s configuration does not have {{RTCConfiguration/encodedInsertableStreams}} set to "true", throw an "{{InvalidAccessError}}" {{DOMException}} and abort these steps.
159-
2. If the data source does not permit access, throw an "{{InvalidAccessError}}" {{DOMException}} and abort these steps.
160-
3. If [=this=].`[[Streams]]` is not null, throw an "{{InvalidAccessError}}" {{DOMException}}.
161-
4. If [=this=].`[[pipeToController]]` is not null, throw an "{{InvalidAccessError}}" {{DOMException}}.
162-
5. Set [=this=].`[[Streams]]` to an {{RTCInsertableStreams}} object.
163-
6. Set [=this=].`[[Streams]]`.{{RTCInsertableStreams/readable}} to [=this=].`[[readable]]`.
164-
7. Set [=this=].`[[Streams]]`.{{RTCInsertableStreams/writable}} to [=this=].`[[writable]]`.
165-
8. Enable the encoded data source.
166-
10. Return [=this=].`[[Streams]]`.
167-
168147
### Stream processing ### {#stream-processing}
169148

170149
The <dfn>readEncodedData</dfn> algorithm is given a |rtcObject| as parameter. It is defined by running the following steps:

0 commit comments

Comments
 (0)