Back to Content

VideoFrame: timestamp property

files/en-us/web/api/videoframe/timestamp/index.md

latest442 B
Original Source

{{APIRef("Web Codecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The timestamp property of the {{domxref("VideoFrame")}} interface returns an integer indicating the timestamp of the video in microseconds.

Value

An integer.

Examples

The following example prints the timestamp to the console.

js
console.log(VideoFrame.timestamp);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}