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
// New methods for RTCRtpSender and RTCRtpReceiver
133
132
partial interface RTCRtpSender {
134
-
RTCInsertableStreams createEncodedVideoStreams();
135
-
RTCInsertableStreams createEncodedAudioStreams();
133
+
RTCInsertableStreams createEncodedStreams();
136
134
};
137
135
138
136
partial interface RTCRtpReceiver {
139
-
RTCInsertableStreams createEncodedVideoStreams();
140
-
RTCInsertableStreams createEncodedAudioStreams();
137
+
RTCInsertableStreams createEncodedStreams();
141
138
};
142
139
</pre>
143
140
@@ -150,10 +147,10 @@ argument, ensure that the codec is disabled and produces no output.
150
147
Let the {{RTCRtpSender}} or {{RTCRtpReceiver}} have an internal slot,
151
148
[[\Streams]], initialized to null.
152
149
153
-
When {{RTCRtpSender/createEncodedVideoStreams}}() or {{RTCRtpSender/createEncodedAudioStreams}}() is
150
+
When {{RTCRtpSender/createEncodedStreams}}() is
154
151
called, run the following steps:
155
152
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.
157
154
* If the data source does not permit access, throw an {{InvalidAccessError}} and abort these steps.
158
155
* If [[\Streams]] is not null, throw an {{InvalidStateError}}.
0 commit comments