-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make VideoFrame a CanvasImageSource #158
Milestone
Comments
@domenic FYI |
We also need to add it as a TexImageSource here: https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14 I was planning to get to it this week. |
dalecurtis
added a commit
to dalecurtis/html
that referenced
this issue
Apr 14, 2021
dalecurtis
added a commit
to dalecurtis/html
that referenced
this issue
Apr 14, 2021
Adding VideoFrame as a CanvasImageSource allows drawImage(), createImageBitmap(), and texImage() to interoperate with VideoFrames. VideoFrames are effectively the same as the existing point-in-time capture done for HTMLVideoElement on each of these interfaces. This adds a non-normative reference on the WebCodecs spec for the VideoFrame interface and associated properties to accomplish this. Bug: w3c/webcodecs#158
dalecurtis
added a commit
to dalecurtis/html
that referenced
this issue
Apr 16, 2021
Adding VideoFrame as a CanvasImageSource allows drawImage(), createImageBitmap(), and texImage() to interoperate with VideoFrames. VideoFrames are effectively the same as the existing point-in-time capture done for HTMLVideoElement on each of these interfaces. This adds a non-normative reference on the WebCodecs spec for the VideoFrame interface and associated properties to accomplish this. Bug: w3c/webcodecs#158
dalecurtis
added a commit
to dalecurtis/WebGL
that referenced
this issue
Jun 1, 2021
Adding VideoFrame as a TexImageSource allows texImage*() methods to interoperate with VideoFrames. VideoFrames work with texImage*() the same way the existing point-in-time capture for HTMLVideoElement does. This adds a non-normative reference on the WebCodecs spec for the VideoFrame interface and associated properties to accomplish this. Note: VideoFrame objects are always same-origin, so I did not add any text around origin restrictions for video frames. https://www.w3.org/TR/webcodecs/#videoframe-interface Bug: w3c/webcodecs#158
kdashg
pushed a commit
to KhronosGroup/WebGL
that referenced
this issue
Jun 3, 2021
* Add WebCodecs VideoFrame as a TexImageSource. Adding VideoFrame as a TexImageSource allows texImage*() methods to interoperate with VideoFrames. VideoFrames work with texImage*() the same way the existing point-in-time capture for HTMLVideoElement does. This adds a non-normative reference on the WebCodecs spec for the VideoFrame interface and associated properties to accomplish this. Note: VideoFrame objects are always same-origin, so I did not add any text around origin restrictions for video frames. https://www.w3.org/TR/webcodecs/#videoframe-interface Bug: w3c/webcodecs#158 * Actually add spec reference.
dalecurtis
added a commit
to dalecurtis/html
that referenced
this issue
Jul 19, 2021
Adding VideoFrame as a CanvasImageSource allows drawImage(), createImageBitmap(), and texImage() to interoperate with VideoFrames. VideoFrames are effectively the same as the existing point-in-time capture done for HTMLVideoElement on each of these interfaces. This adds a non-normative reference on the WebCodecs spec for the VideoFrame interface and associated properties to accomplish this. Bug: w3c/webcodecs#158
domenic
pushed a commit
to whatwg/html
that referenced
this issue
Jul 29, 2021
Adding VideoFrame as a CanvasImageSource allows drawImage(), createImageBitmap(), and texImage() to interoperate with VideoFrames. VideoFrames are effectively the same as the existing point-in-time capture done for HTMLVideoElement on each of these interfaces. Fixes w3c/webcodecs#158.
mfreed7
pushed a commit
to mfreed7/html
that referenced
this issue
Jun 3, 2022
Adding VideoFrame as a CanvasImageSource allows drawImage(), createImageBitmap(), and texImage() to interoperate with VideoFrames. VideoFrames are effectively the same as the existing point-in-time capture done for HTMLVideoElement on each of these interfaces. Fixes w3c/webcodecs#158.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Already implemented in Chrome. This issue tracks the need to file a PR on HTML to get VideoFrame added here.
This makes it possible to use canvas drawImage(videoFrame) as well as window.createImageBitmap(videoFrame) (meaning we can remove videoFrame.createImageBitmap().
This is simpler to use and more efficient vs previous proposal of always first creating an ImageBitmap.
Related issues: #88 and #145
The text was updated successfully, but these errors were encountered: