File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 20732073run these steps:
207420741. If {{AudioEncoderConfig/codec}} is not a < a > valid codec string</ a > , return
20752075 `false`.
2076- 2. Return `true`.
2076+ 2. If the {{AudioEncoderConfig}} has a codec-specific extension and the corresponding
2077+ registration in the [[WEBCODECS-CODEC-REGISTRY]] defines steps to check whether the
2078+ the extension is a valid extension, return the result of running those steps.
2079+ 3. Return `true`.
20772080
20782081< dl >
20792082 < dt > < dfn dict-member for =AudioEncoderConfig > codec</ dfn > </ dt >
Original file line number Diff line number Diff line change 105105NOTE: Once the initialization has succeeded, any packet can be decoded at any
106106time without error, but this might not result in the expected audio output.
107107
108- AudiEncoderConfig extensions {#audioencoderconfig-extensions}
108+ AudioEncoderConfig extensions {#audioencoderconfig-extensions}
109109=============================================================
110110
111111< pre class ='idl '>
131131< xmp >
132132dictionary OpusEncoderConfig {
133133 OpusBitstreamFormat format = "opus";
134+ [EnforceRange] unsigned long frameDuration;
134135};
135136</ xmp >
136137</ pre >
137138
139+ To check if an {{OpusEncoderConfig}} is valid, run these steps:
140+ 1. If {{OpusEncoderConfig/frameDuration}} is not a valid `ptime` value,
141+ which is described in Section 6.1 of [[RFC7587]], return `false`.
142+ 2. Return `true`.
143+
138144< dl >
139145 < dt > < dfn dict-member for =OpusEncoderConfig > format</ dfn > </ dt >
140146 < dd >
141147 Configures the format of output {{EncodedAudioChunk}}s. See
142148 {{OpusBitstreamFormat}}.
143149 </ dd >
150+ < dt > < dfn dict-member for =OpusEncoderConfig > frameDuration</ dfn > </ dt >
151+ < dd >
152+ Configures the frame duration, in milliseconds, of output {{EncodedAudioChunk}}s.
153+ </ dd >
144154</ dl >
145155
146156OpusBitstreamFormat {#opus-bitstream-format}
You can’t perform that action at this time.
0 commit comments