Skip to content

Commit 55094ea

Browse files
committed
support specify audio encode bitrateMode interface
1 parent 2b856eb commit 55094ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

opus_codec_registration.src.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
[EnforceRange] unsigned long packetlossperc = 0;
121121
boolean useinbandfec = false;
122122
boolean usedtx = false;
123+
BitrateMode bitrateMode = "variable";
123124
};
124125
</xmp>
125126
</pre>
@@ -169,6 +170,14 @@
169170
Specifies if the encoder uses Discontinuous Transmission (DTX), as described
170171
by section 2.1.9. of [[RFC6716]].
171172
</dd>
173+
<dt><dfn dict-member for=OpusEncoderConfig>bitrateMode</dfn></dt>
174+
<dd>
175+
Configures encoder to use a {{BitrateMode/constant}} or
176+
{{BitrateMode/variable}} bitrate mode as defined by [[MEDIASTREAM-RECORDING]].
177+
178+
NOTE: {{BitrateMode/constant}} correspond to Opus CBR and {{BitrateMode/variable}}
179+
correspond to Opus VBR as defined by section-2.1.8. of [[RFC6716]].
180+
</dd>
172181
</dl>
173182

174183
OpusBitstreamFormat {#opus-bitstream-format}

0 commit comments

Comments
 (0)