w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.

Home Page:https://w3c.github.io/webcodecs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VideoFrame copyTo() behavior with non-RGBA/RGBX/BGRA/BGRX formats

domenic opened this issue · comments

From what I can tell from https://w3c.github.io/webcodecs/#dom-videoframe-copyto , formats that are not one of the four allowed formats are... ignored?

This seems like surprising behavior. I would expect the returned promise to get rejected with an exception. Otherwise, web developers might think that they can convert a VideoFrame to one of the many other possible formats.