Skip to content

Commit 6f40605

Browse files
committed
Define captureTime.
Partly addresses w3c/webcodecs#813 (review).
1 parent 14ff6a3 commit 6f40605

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ <h2>Terminology</h2>
5858
<p>The terms [=permission state=], [=request permission to use=], and
5959
<a data-cite="permissions">prompt the user to choose</a> are defined in
6060
[[!permissions]].</p>
61+
<p>
62+
{{Performance.timeOrigin}} and {{Performance.now()}} are defined in
63+
[[!hr-time]].
64+
</p>
6165
</section>
6266
<section id="conformance">
6367
</section>
@@ -1151,6 +1155,34 @@ <h2>Constrainable Properties</h2>
11511155
</tbody>
11521156
</table>
11531157
</section>
1158+
<section>
1159+
<h2>Capture timestamps</h2>
1160+
<div>
1161+
<p>
1162+
Some video sources can supply information about when a video frame was captured.
1163+
This information is useful for example for AV sync and end-to-end delay measurement.
1164+
It MAY be set by the user agent (and be present in {{VideoFrameMetadata}}) by local capturers, or it
1165+
MAY be supplied in {{VideoFrameMetadata}} when a VideoFrame is created.
1166+
</p>
1167+
<section>
1168+
<h3>{{VideoFrameMetadata}}</h3>
1169+
<pre class="idl" data-cite="HR-TIME">
1170+
partial dictionary VideoFrameMetadata {
1171+
DOMHighResTimeStamp captureTime;
1172+
};</pre>
1173+
<section class="notoc">
1174+
<h4>Members</h4>
1175+
<dl class="dictionary-members" data-link-for="VideoFrameMetadata" data-dfn-for="VideoFrameMetadata">
1176+
<dt><dfn><code>captureTime</code></dfn> of type <span
1177+
class="idlMemberType">DOMHighResTimeStamp, readonly</span></dt>
1178+
<dd>
1179+
<p data-cite="HR-TIME">The capture time of the frame. The timestamp is defined as {{Performance.timeOrigin}} + {{Performance.now()}} at that time.</p>
1180+
</dd>
1181+
</dl>
1182+
</section>
1183+
</section>
1184+
</div>
1185+
</section>
11541186
<section>
11551187
<h2>Exposing MediaStreamTrack source heuristic reactions support</h2>
11561188
<div>

0 commit comments

Comments
 (0)