Reduce HLS buffer length to 1 minute instead of the default infinity (#6134)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
marawan31
2020-06-12 08:01:48 -04:00
committed by GitHub
parent 4eb46bc275
commit a822c1eb2f

View File

@@ -176,7 +176,9 @@ class HaCameraStream extends LitElement {
Hls: HLSModule,
url: string
) {
const hls = new Hls();
const hls = new Hls({
liveBackBufferLength: 60,
});
this._hlsPolyfillInstance = hls;
hls.attachMedia(videoEl);
hls.on(Hls.Events.MEDIA_ATTACHED, () => {