The spec says:
dictionary VideoFrameMetadata {
// Possible members are recorded in the VideoFrame Metadata Registry.
};
But the [webcodecs-video-frame-metadata-registry] does not say whether members are optional or required.
Since dictionary members are optional by default, readers will hopefully infer (correctly) that they're optional, since neither spec mentions required.
Readers might also infer this from VideoFrameInit where metadata is not required, if I'm not mistaken.
Still, it might be good to call this out, since a single required member would mean the VideoFrame constructor would suddenly require this input and no longer be backwards compatible.
The spec says:
But the [webcodecs-video-frame-metadata-registry] does not say whether members are optional or
required.Since dictionary members are optional by default, readers will hopefully infer (correctly) that they're optional, since neither spec mentions
required.Readers might also infer this from
VideoFrameInitwhere metadata is not required, if I'm not mistaken.Still, it might be good to call this out, since a single
requiredmember would mean the VideoFrame constructor would suddenly require this input and no longer be backwards compatible.