From 85013ba4f5a1e0abd669aa2dc3d6ec78d2a8de63 Mon Sep 17 00:00:00 2001 From: Johan Brook Date: Mon, 7 Jan 2019 10:49:14 +0100 Subject: [PATCH] HLS.js: Add `liveBackBufferLength` property to Hls.Config --- types/hls.js/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index fe75d8456f..9ea4f3db17 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -486,6 +486,14 @@ declare namespace Hls { * Android Google Chrome, etc. set this value to true. */ liveDurationInfinity: boolean; + /** + * (default: Infinity) + * Sets the maximum length of the buffer, in seconds, to keep during a live stream. Any video + * buffered past this time will be evicted. Infinity means no restriction on back buffer length; + * 0 keeps the minimum amount. The minimum amount is equal to the target duration of a segment + * to ensure that current playback is not interrupted. + */ + liveBackBufferLength: number; /** * (default: true) * Enable WebWorker (if available on browser) for TS demuxing/MP4 remuxing, to improve performance and avoid lag/frame drops.