diff --git a/types/hls.js/hls.js-tests.ts b/types/hls.js/hls.js-tests.ts index 579c2fc18c..934ee1fd9c 100644 --- a/types/hls.js/hls.js-tests.ts +++ b/types/hls.js/hls.js-tests.ts @@ -23,7 +23,7 @@ class pLoader extends Hls.DefaultConfig.loader { if (Hls.isSupported()) { const video = document.getElementById('video'); - const hls = new Hls({ pLoader }); + const hls = new Hls({ pLoader, startFragPrefetch: true }); const version: string = Hls.version; hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8'); hls.attachMedia(video); diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index a376a29b2c..721f4a3dce 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -567,7 +567,7 @@ declare namespace Hls { * (default: false) * Start prefetching start fragment although media not attached yet. Max number of append retries. */ - startFragPrefech: boolean; + startFragPrefetch: boolean; /** * (default: 3) * Max number of sourceBuffer.appendBuffer() retry upon error. Such error could happen in loop with UHD streams, when internal buffer is full. (Quota Exceeding Error will be triggered).