From 6f406058eceae4d83ff4701f43e67e9e5f959f29 Mon Sep 17 00:00:00 2001 From: Markus Handell Date: Mon, 9 Sep 2024 14:40:04 +0200 Subject: [PATCH] Define captureTime. Partly addresses https://github.com/w3c/webcodecs/pull/813#pullrequestreview-2169568794. --- index.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/index.html b/index.html index d48ea70..0a0b41d 100644 --- a/index.html +++ b/index.html @@ -58,6 +58,10 @@

Terminology

The terms [=permission state=], [=request permission to use=], and prompt the user to choose are defined in [[!permissions]].

+

+ {{Performance.timeOrigin}} and {{Performance.now()}} are defined in + [[!hr-time]]. +

@@ -1151,6 +1155,34 @@

Constrainable Properties

+
+

Capture timestamps

+
+

+ Some video sources can supply information about when a video frame was captured. + This information is useful for example for AV sync and end-to-end delay measurement. + It MAY be set by the user agent (and be present in {{VideoFrameMetadata}}) by local capturers, or it + MAY be supplied in {{VideoFrameMetadata}} when a VideoFrame is created. +

+
+

{{VideoFrameMetadata}}

+
+    partial dictionary VideoFrameMetadata {
+      DOMHighResTimeStamp captureTime;
+    };
+
+

Members

+
+
captureTime of type DOMHighResTimeStamp, readonly
+
+

The capture time of the frame. The timestamp is defined as {{Performance.timeOrigin}} + {{Performance.now()}} at that time.

+
+
+
+
+
+

Exposing MediaStreamTrack source heuristic reactions support