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
@@ -151,27 +135,27 @@ argument, ensure that the codec is disabled and produces no output.
151
135
### Stream creation ### {#stream-creation}
152
136
153
137
Let the {{RTCRtpSender}} or {{RTCRtpReceiver}} have an internal slot,
154
-
[[\Streams]], initialized to null.
138
+
`[[Streams]]`, initialized to null.
155
139
156
140
When {{RTCRtpSender/createEncodedStreams}}() is
157
141
called, run the following steps:
158
142
159
143
* If the {{RTCPeerConnection}}'s configuration does not have {{RTCConfiguration/encodedInsertableStreams}} set to "true", throw an {{InvalidStateError}} and abort these steps.
160
144
* If the data source does not permit access, throw an {{InvalidAccessError}} and abort these steps.
161
-
* If [[\Streams]] is not null, throw an {{InvalidStateError}}.
162
-
* Create an {{RTCInsertableStreams}} object 's'.
163
-
* Set s.readable to a ReadableStream representing the encoded data source.
164
-
* Set s.writable to a WritableStream representing the encoded data sink.
145
+
* If `[[Streams]]` is not null, throw an {{InvalidStateError}}.
146
+
* Create an {{RTCInsertableStreams}} object |s|.
147
+
* Set |s|.{{RTCInsertableStreams/readable}} to a {{ReadableStream}} representing the encoded data source.
148
+
* Set |s|.{{RTCInsertableStreams/writable}} to a {{WritableStream}} representing the encoded data sink.
165
149
* Enable the encoded data source.
166
-
* Store 's' in the internal slot [[\Streams]].
167
-
* Return 's'
150
+
* Store |s| in the internal slot `[[Streams]]`.
151
+
* Return |s|
168
152
169
153
### Stream processing ### {#stream-processing}
170
154
171
155
When a frame is produced from the encoded data source, place it on the
172
-
[[\Streams]].readableStream'.
156
+
`[[Streams]]`.{{RTCInsertableStreams/readable}}.
173
157
174
-
When a frame appears on the [[\Streams]].writable, do the following:
158
+
When a frame appears on the `[[Streams]]`.{{RTCInsertableStreams/writable}}, do the following:
175
159
* Check that the frame is a a valid frame that has been created by the encoded data source; if it is not, discard it. A processor cannot create frames, or move frames between streams.
176
160
* Check that the frame's {{RTCEncodedVideoFrame/timestamp}} is equal to or larger than any previously received frame. A processor cannot reorder frames, although it may delay them or drop them.
177
161
* Process the frame as if it came directly from the encoded data source.
@@ -191,6 +175,6 @@ otherwise unavailable, which allows some fingerprinting surface.
191
175
192
176
# Examples # {#examples}
193
177
194
-
See the explainer document.
178
+
See the [explainer document](https://github.com/w3c/webrtc-insertable-streams/blob/master/explainer.md#code-examples).
0 commit comments