Skip to content

Commit 53bfdf4

Browse files
committed
Add a note to close VideoFrames explicitly
1 parent 9f59da8 commit 53bfdf4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ associated {{ReadableStream}} only when a read request has been issued on
108108
the stream. The idea is to avoid the stream's internal buffering, which
109109
does not give the UA enough flexibility to choose the buffering policy.
110110

111+
<p class="note">
112+
Authors are encouraged to call close() on output {{VideoFrame|VideoFrames}} immediately when frames are no longer needed.
113+
The underlying media resources are owned by the {{MediaStreamTrack}}'s source.
114+
Failing to release them (or waiting for garbage collection) can cause the source to stop emiting {{VideoFrame|VideoFrames}}.
115+
</p>
116+
111117
### Interface definition ### {#track-processor-interface}
112118

113119
<pre class="idl">
@@ -209,6 +215,8 @@ It is defined by running the following steps:
209215
</dl>
210216

211217
### Handling interaction with the track ### {#processor-handling-interaction-with-track}
218+
<dl>
219+
<dd>
212220
When the `[[track]]` of a {{MediaStreamTrackProcessor}} |processor| delivers a
213221
frame to |processor|, the UA MUST execute the [=handleNewFrame=] algorithm
214222
with |processor| as parameter.

0 commit comments

Comments
 (0)