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
@@ -150,6 +145,9 @@ At the time when a codec is initialized as part of the encoder, and the
150
145
corresponding flag is set in the {{RTCPeerConnection}}'s {{RTCConfiguration}}
151
146
argument, ensure that the codec is disabled and produces no output.
152
147
148
+
149
+
### Stream creation ### {#stream-creation}
150
+
153
151
Let the {{RTCRtpSender}} or {{RTCRtpReceiver}} have an internal slot,
154
152
[[\Streams]], initialized to null.
155
153
@@ -166,11 +164,15 @@ called, run the following steps:
166
164
* Store 's' in the internal slot [[\Streams]].
167
165
* Return 's'
168
166
167
+
### Stream processing ### {#stream-processing}
168
+
169
169
When a frame is produced from the encoded data source, place it on the
170
170
[[\Streams]].readableStream'.
171
171
172
-
When a frame appears on the [[\Streams]].writableStream, process it as if it came
173
-
directly from the encoded data source.
172
+
When a frame appears on the [[\Streams]].writableStream, do the following:
173
+
* 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.
174
+
* 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.
175
+
* Process the frame as if it came directly from the encoded data source.
174
176
175
177
# Privacy and security considerations # {#privacy}
0 commit comments