Skip to content

Switch VideoFrame(ImageBitmap) to VideoFrame(CanvasImageSource) #145

@chcunningham

Description

@chcunningham

This still allows for ImageBitmap, but also much more, as CanvasImageSource is a union of:
HTMLImageElement
SVGImageElement
HTMLVideoElement
HTMLCanvasElement
ImageBitmap
OffscreenCanvas

We also plan to add VideoFrame itself to that union.

Also, while doing this transition we should split off the resolution properties in VideoFrameInit -> VideoFramePlaneInit. They are most logical/useful when constructing from Planes.

These proposals are actively being implemented in chrome:
https://chromium-review.googlesource.com/c/chromium/src/+/2718704
https://chromium-review.googlesource.com/c/chromium/src/+/2718896

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions