Make default keyFrameInterval 2 seconds to align with default HLS segment duration

This commit is contained in:
Vanilagy
2026-04-13 17:47:48 +02:00
parent 2a2b6450c9
commit c6e505a6fe
6 changed files with 65 additions and 6 deletions
+2 -1
View File
@@ -1205,7 +1205,8 @@ export type HlsOutputFormatOptions = {
*
* Mediabunny will try not to emit media segments longer than the target duration, but it is forced to if key frames
* are provided with a longer period than the target duration. Therefore, make sure to encode a key frame at least
* every `targetDuration` seconds to guarantee segment length.
* every `targetDuration` seconds to guarantee segment length, controllable via
* {@link VideoEncodingConfig.keyFrameInterval}.
*/
targetDuration?: number;
/**