Open
Description
Possibly the spec is too early for inclusion. For others with the same issue, here are the types I came up with:
interface VideoFrameMetadata {
presentationTime: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
width: number;
height: number;
mediaTime: number;
presentedFrames: number;
processingDuration?: number;
captureTime?: DOMHighResTimeStamp;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
};
type VideoFrameRequestCallbackId = number;
interface HTMLVideoElement extends HTMLMediaElement {
requestVideoFrameCallback(callback: (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata) => any): VideoFrameRequestCallbackId;
cancelVideoFrameCallback(handle: VideoFrameRequestCallbackId): void;
}
Metadata
Metadata
Assignees
Labels
No labels