Skip to content

Should VideoEncoderConfig cloning remove parameters that are not useful for a given codec? #681

@youennf

Description

@youennf

According https://w3c.github.io/webcodecs/#clone-configuration, the configuration should be cloned, hence all members of VideoEncoderSupport should be copied.

Chrome in https://wpt.live/webcodecs/video-encoder-config.https.any.html assumes that the avc member will not be cloned if the codec is vp8. Safari simply clones all members it knows.

The note in https://w3c.github.io/webcodecs/#dom-videoencoder-isconfigsupported says that only recognised dictionary members will be copied. recognised could be interpreted both ways.
It would be good to clarify the intent here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CR BlockingNeeds to resolved for Candidate RecommendationReady for PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions