HLS.js: Add liveBackBufferLength property to Hls.Config

This commit is contained in:
Johan Brook
2019-01-07 10:49:14 +01:00
parent f968fb1e6c
commit 85013ba4f5
+8
View File
@@ -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.