hls.js 1.5.14-0.canary.10501 → 1.5.14-0.canary.10505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hls-demo.js.map +1 -1
- package/dist/hls.js +14 -14
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +8 -8
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +2 -2
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +2 -2
- package/dist/hls.worker.js +1 -1
- package/package.json +3 -3
package/dist/hls.js
CHANGED
@@ -523,7 +523,7 @@
|
|
523
523
|
// Some browsers don't allow to use bind on console object anyway
|
524
524
|
// fallback to default if needed
|
525
525
|
try {
|
526
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.
|
526
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10505");
|
527
527
|
} catch (e) {
|
528
528
|
/* log fn threw an exception. All logger methods are no-ops. */
|
529
529
|
return createLogger();
|
@@ -10574,14 +10574,14 @@
|
|
10574
10574
|
var _level$details;
|
10575
10575
|
var partsLoaded = [];
|
10576
10576
|
var initialPartList = (_level$details = level.details) == null ? void 0 : _level$details.partList;
|
10577
|
-
var
|
10577
|
+
var _loadPart = function loadPart(part) {
|
10578
10578
|
_this6.fragmentLoader.loadPart(frag, part, progressCallback).then(function (partLoadedData) {
|
10579
10579
|
partsLoaded[part.index] = partLoadedData;
|
10580
10580
|
var loadedPart = partLoadedData.part;
|
10581
10581
|
_this6.hls.trigger(Events.FRAG_LOADED, partLoadedData);
|
10582
10582
|
var nextPart = getPartWith(level.details, frag.sn, part.index + 1) || findPart(initialPartList, frag.sn, part.index + 1);
|
10583
10583
|
if (nextPart) {
|
10584
|
-
|
10584
|
+
_loadPart(nextPart);
|
10585
10585
|
} else {
|
10586
10586
|
return resolve({
|
10587
10587
|
frag: frag,
|
@@ -10591,7 +10591,7 @@
|
|
10591
10591
|
}
|
10592
10592
|
}).catch(reject);
|
10593
10593
|
};
|
10594
|
-
|
10594
|
+
_loadPart(fromPart);
|
10595
10595
|
});
|
10596
10596
|
};
|
10597
10597
|
_proto.handleFragLoadError = function handleFragLoadError(error) {
|
@@ -17317,7 +17317,7 @@
|
|
17317
17317
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
17318
17318
|
}
|
17319
17319
|
|
17320
|
-
var version = "1.5.14-0.canary.
|
17320
|
+
var version = "1.5.14-0.canary.10505";
|
17321
17321
|
|
17322
17322
|
// ensure the worker ends up in the bundle
|
17323
17323
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -22468,9 +22468,9 @@
|
|
22468
22468
|
;
|
22469
22469
|
_proto2.percent = function percent(k, v) {
|
22470
22470
|
if (/^([\d]{1,3})(\.[\d]*)?%$/.test(v)) {
|
22471
|
-
var
|
22472
|
-
if (
|
22473
|
-
this.set(k,
|
22471
|
+
var _percent = parseFloat(v);
|
22472
|
+
if (_percent >= 0 && _percent <= 100) {
|
22473
|
+
this.set(k, _percent);
|
22474
22474
|
return true;
|
22475
22475
|
}
|
22476
22476
|
}
|
@@ -24328,7 +24328,7 @@
|
|
24328
24328
|
videoCodecs.push('avc1.42e01e');
|
24329
24329
|
}
|
24330
24330
|
return new Promise(function (resolve, reject) {
|
24331
|
-
var
|
24331
|
+
var _attempt = function attempt(keySystems) {
|
24332
24332
|
var keySystem = keySystems.shift();
|
24333
24333
|
_this3.getMediaKeysPromise(keySystem, audioCodecs, videoCodecs).then(function (mediaKeys) {
|
24334
24334
|
return resolve({
|
@@ -24337,7 +24337,7 @@
|
|
24337
24337
|
});
|
24338
24338
|
}).catch(function (error) {
|
24339
24339
|
if (keySystems.length) {
|
24340
|
-
|
24340
|
+
_attempt(keySystems);
|
24341
24341
|
} else if (error instanceof EMEKeyError) {
|
24342
24342
|
reject(error);
|
24343
24343
|
} else {
|
@@ -24350,7 +24350,7 @@
|
|
24350
24350
|
}
|
24351
24351
|
});
|
24352
24352
|
};
|
24353
|
-
|
24353
|
+
_attempt(keySystemsToAttempt);
|
24354
24354
|
});
|
24355
24355
|
};
|
24356
24356
|
_proto.requestMediaKeySystemAccess = function requestMediaKeySystemAccess$1(keySystem, supportedConfigurations) {
|
@@ -27118,7 +27118,7 @@
|
|
27118
27118
|
}
|
27119
27119
|
var chunkCache = new ChunkCache();
|
27120
27120
|
var reader = response.body.getReader();
|
27121
|
-
var
|
27121
|
+
var _pump = function pump() {
|
27122
27122
|
return reader.read().then(function (data) {
|
27123
27123
|
if (data.done) {
|
27124
27124
|
if (chunkCache.dataLength) {
|
@@ -27142,13 +27142,13 @@
|
|
27142
27142
|
// just emit the progress event
|
27143
27143
|
onProgress(stats, context, chunk, response);
|
27144
27144
|
}
|
27145
|
-
return
|
27145
|
+
return _pump();
|
27146
27146
|
}).catch(function () {
|
27147
27147
|
/* aborted */
|
27148
27148
|
return Promise.reject();
|
27149
27149
|
});
|
27150
27150
|
};
|
27151
|
-
return
|
27151
|
+
return _pump();
|
27152
27152
|
};
|
27153
27153
|
return FetchLoader;
|
27154
27154
|
}();
|