File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 20512051< xmp class ='idl '>
20522052dictionary AudioEncoderConfig {
20532053 required DOMString codec;
2054- [EnforceRange] unsigned long sampleRate;
2055- [EnforceRange] unsigned long numberOfChannels;
2054+ [EnforceRange] required unsigned long sampleRate;
2055+ [EnforceRange] required unsigned long numberOfChannels;
20562056 [EnforceRange] unsigned long long bitrate;
20572057 BitrateMode bitrateMode = "variable";
20582058};
206920692. If the {{AudioEncoderConfig}} has a codec-specific extension and the corresponding
20702070 registration in the [[WEBCODECS-CODEC-REGISTRY]] defines steps to check whether
20712071 the extension is a valid extension, return the result of running those steps.
2072- 3. Return `true`.
2072+ 3. If {{AudioEncoderConfig/sampleRate}} or {{AudioEncoderConfig/numberOfChannels}} are
2073+ equal to zero, return `false`.
2074+ 4. Return `true`.
20732075
20742076< dl >
20752077 < dt > < dfn dict-member for =AudioEncoderConfig > codec</ dfn > </ dt >
You can’t perform that action at this time.
0 commit comments