cdumez@apple.com | dec3653 | 2020-05-29 03:00:55 +0000 | [diff] [blame] | 1 | // GENERATED CONTENT - DO NOT EDIT |
cdumez@apple.com | d927a98 | 2020-10-31 00:29:02 +0000 | [diff] [blame] | 2 | // Content was automatically extracted by Reffy into webref |
| 3 | // (https://github.com/w3c/webref) |
cdumez@apple.com | dec3653 | 2020-05-29 03:00:55 +0000 | [diff] [blame] | 4 | // Source: HTMLVideoElement.requestVideoFrameCallback() (https://wicg.github.io/video-rvfc/) |
| 5 | |
| 6 | dictionary VideoFrameMetadata { |
| 7 | required DOMHighResTimeStamp presentationTime; |
| 8 | required DOMHighResTimeStamp expectedDisplayTime; |
| 9 | |
| 10 | required unsigned long width; |
| 11 | required unsigned long height; |
| 12 | required double mediaTime; |
| 13 | |
| 14 | required unsigned long presentedFrames; |
| 15 | double processingDuration; |
| 16 | |
| 17 | DOMHighResTimeStamp captureTime; |
| 18 | DOMHighResTimeStamp receiveTime; |
| 19 | unsigned long rtpTimestamp; |
| 20 | }; |
| 21 | |
cdumez@apple.com | d927a98 | 2020-10-31 00:29:02 +0000 | [diff] [blame] | 22 | callback VideoFrameRequestCallback = undefined(DOMHighResTimeStamp now, VideoFrameMetadata metadata); |
cdumez@apple.com | dec3653 | 2020-05-29 03:00:55 +0000 | [diff] [blame] | 23 | |
| 24 | partial interface HTMLVideoElement { |
| 25 | unsigned long requestVideoFrameCallback(VideoFrameRequestCallback callback); |
cdumez@apple.com | d927a98 | 2020-10-31 00:29:02 +0000 | [diff] [blame] | 26 | undefined cancelVideoFrameCallback(unsigned long handle); |
cdumez@apple.com | dec3653 | 2020-05-29 03:00:55 +0000 | [diff] [blame] | 27 | }; |