Skip to content

Clarify that all VideoFrameMetadata members are optional #879

Open
@jan-ivar

Description

@jan-ivar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions