hls.js Fix typo for startFragPrefetch config (#29464)

* Fix typo for startFragPrefetch

* Add startFragPrefetch to test
This commit is contained in:
Viet Truong
2018-10-05 11:09:19 -07:00
committed by Wesley Wigham
parent ed22ab9858
commit 1ab3279c8d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class pLoader extends Hls.DefaultConfig.loader {
if (Hls.isSupported()) {
const video = <HTMLVideoElement> 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);
+1 -1
View File
@@ -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).