Skip to content

Commit 388cb61

Browse files
committed
Renamed CreateEncodedVideoStreams to CreateEncodedStreams
1 parent ceded2d commit 388cb61

File tree

2 files changed

+31
-54
lines changed

2 files changed

+31
-54
lines changed

index.bs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,16 @@ interface RTCEncodedAudioFrame {
125125

126126
// New fields in RTCConfiguration
127127
partial dictionary RTCConfiguration {
128-
boolean forceEncodedVideoInsertableStreams = false;
129-
boolean forceEncodedAudioInsertableStreams = false;
128+
boolean forceEncodedInsertableStreams = false;
130129
};
131130

132131
// New methods for RTCRtpSender and RTCRtpReceiver
133132
partial interface RTCRtpSender {
134-
RTCInsertableStreams createEncodedVideoStreams();
135-
RTCInsertableStreams createEncodedAudioStreams();
133+
RTCInsertableStreams createEncodedStreams();
136134
};
137135

138136
partial interface RTCRtpReceiver {
139-
RTCInsertableStreams createEncodedVideoStreams();
140-
RTCInsertableStreams createEncodedAudioStreams();
137+
RTCInsertableStreams createEncodedStreams();
141138
};
142139
</pre>
143140

@@ -150,10 +147,10 @@ argument, ensure that the codec is disabled and produces no output.
150147
Let the {{RTCRtpSender}} or {{RTCRtpReceiver}} have an internal slot,
151148
[[\Streams]], initialized to null.
152149

153-
When {{RTCRtpSender/createEncodedVideoStreams}}() or {{RTCRtpSender/createEncodedAudioStreams}}() is
150+
When {{RTCRtpSender/createEncodedStreams}}() is
154151
called, run the following steps:
155152

156-
* If the kind of the sender does not match, throw a {{TypeError}} and abort these steps.
153+
* If the {{RTCPeerConnection}}'s configuration does not have {{RTCConfiguration/forceEncodedInsertableStreams}} set to "true", throw an {{InvalidStateError}} and abort these steps.
157154
* If the data source does not permit access, throw an {{InvalidAccessError}} and abort these steps.
158155
* If [[\Streams]] is not null, throw an {{InvalidStateError}}.
159156
* Create an {{RTCInsertableStreams}} object 's'.

0 commit comments

Comments
 (0)