Skip to content

Commit b5e1d38

Browse files
committed
Allow newly created codecs to be reclaimed if the system is out of resources
1 parent 6fd01eb commit b5e1d38

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

index.src.html

+5-9
Original file line numberDiff line numberDiff line change
@@ -3696,7 +3696,7 @@
36963696
:: The presentation timestamp, given in microseconds. For decode,
36973697
timestamp is copied from the {{EncodedVideoChunk}} corresponding
36983698
to this {{VideoFrame}}. For encode, timestamp is copied to the
3699-
{{EncodedVideoChunk}}s corresponding to this {{VideoFrame}}.
3699+
{{EncodedVideoChunk}}s corresponding to this {{VideoFrame}}.
37003700

37013701
The {{VideoFrame/timestamp}} getter steps are to return
37023702
{{VideoFrame/[[timestamp]]}}.
@@ -6032,14 +6032,10 @@
60326032
an [=active=] or [=inactive=] codec and/or a [=background=] codec.
60336033

60346034
An <dfn lt="active codec|active">active codec</dfn> is a codec that has
6035-
received a call to `encode()`, `decode()`, `configure()`, `flush()` or `reset()`
6036-
in the past `10 seconds`, or has called its `output()` callback in the past `10
6037-
seconds`. Addionally, {{VideoEncoder}}s are considered [=active=] if they are
6038-
making progress in encoding queued {{VideoFrame}}s.
6039-
6040-
NOTE: Encoding large {{VideoFrame}}s can take more than `10s` per frame. The
6041-
special case for {{VideoEncoder}}s ensures that they are not reclaimed if more
6042-
than `10 seconds` elapses between each `output()` callback.
6035+
made progress on the [=[[codec work queue]]=] in the past `10 seconds`.
6036+
6037+
NOTE: A reliable sign of the working queue's progress is a call to `output()`
6038+
callback.
60436039

60446040
An <dfn lt="inactive codec|inactive">inactive codec</dfn> is any codec that does
60456041
not meet the definition of an [=active codec=].

0 commit comments

Comments
 (0)