Skip to content

Commit

Permalink
Define captureTime.
Browse files Browse the repository at this point in the history
Partly addresses w3c/webcodecs#813 (review).
  • Loading branch information
handellm committed Sep 9, 2024
1 parent 14ff6a3 commit 6f40605
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ <h2>Terminology</h2>
<p>The terms [=permission state=], [=request permission to use=], and
<a data-cite="permissions">prompt the user to choose</a> are defined in
[[!permissions]].</p>
<p>
{{Performance.timeOrigin}} and {{Performance.now()}} are defined in
[[!hr-time]].
</p>
</section>
<section id="conformance">
</section>
Expand Down Expand Up @@ -1151,6 +1155,34 @@ <h2>Constrainable Properties</h2>
</tbody>
</table>
</section>
<section>
<h2>Capture timestamps</h2>
<div>
<p>
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.
</p>
<section>
<h3>{{VideoFrameMetadata}}</h3>
<pre class="idl" data-cite="HR-TIME">
partial dictionary VideoFrameMetadata {
DOMHighResTimeStamp captureTime;
};</pre>
<section class="notoc">
<h4>Members</h4>
<dl class="dictionary-members" data-link-for="VideoFrameMetadata" data-dfn-for="VideoFrameMetadata">
<dt><dfn><code>captureTime</code></dfn> of type <span
class="idlMemberType">DOMHighResTimeStamp, readonly</span></dt>
<dd>
<p data-cite="HR-TIME">The capture time of the frame. The timestamp is defined as {{Performance.timeOrigin}} + {{Performance.now()}} at that time.</p>
</dd>
</dl>
</section>
</section>
</div>
</section>
<section>
<h2>Exposing MediaStreamTrack source heuristic reactions support</h2>
<div>
Expand Down

0 comments on commit 6f40605

Please sign in to comment.