Skip to content

Commit d7edc37

Browse files
authored
Merge pull request #587 from dontcallmedom/timestamp-note
Move note on meaningful timestamp to VideoFrame constructor
2 parents 03025de + 1aef32c commit d7edc37

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

index.src.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3356,6 +3356,14 @@
33563356
{{DOMException}}.
33573357
3. Let |frame| be a new {{VideoFrame}}.
33583358
5. Switch on |image|:
3359+
3360+
NOTE: Authors are encouraged to provide a meaningful timestamp unless it is
3361+
implicitly provided by the {{CanvasImageSource}} at construction.
3362+
Interfaces that consume {{VideoFrame}}s can rely on this value for
3363+
timing decisions. For example, {{VideoEncoder}} can use
3364+
{{VideoFrame/timestamp}} values to guide rate control (see
3365+
{{VideoEncoderConfig/framerate}}).
3366+
33593367
- {{HTMLImageElement}}
33603368
- {{SVGImageElement}}
33613369
1. If {{VideoFrameInit/timestamp}} does not [=map/exist=] in
@@ -3570,13 +3578,6 @@
35703578
The {{VideoFrame/timestamp}} getter steps are to return
35713579
{{VideoFrame/[[timestamp]]}}.
35723580

3573-
NOTE: Authors are encouraged to provide a meaningful timestamp unless it is
3574-
implicitly provided by the {{CanvasImageSource}} at construction.
3575-
Interfaces that consume {{VideoFrame}}s can rely on this value for
3576-
timing decisions. For example, {{VideoEncoder}} can use
3577-
{{VideoFrame/timestamp}} values to guide rate control (see
3578-
{{VideoEncoderConfig/framerate}}).
3579-
35803581
: <dfn attribute for=VideoFrame>duration</dfn>
35813582
:: The presentation duration, given in microseconds. The duration is copied
35823583
from the {{EncodedVideoChunk}} corresponding to this VideoFrame.

0 commit comments

Comments
 (0)