hls.js 1.6.0-beta.1.0.canary.10806 → 1.6.0-beta.1.0.canary.10809
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.js +18 -14
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +10 -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 +10 -8
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +18 -14
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +2 -2
- package/src/controller/audio-stream-controller.ts +1 -1
- package/src/controller/eme-controller.ts +6 -6
- package/src/controller/timeline-controller.ts +1 -1
- package/src/crypt/decrypter.ts +2 -1
- package/src/demux/chunk-cache.ts +1 -1
- package/src/demux/transmuxer.ts +3 -2
- package/src/types/buffer.ts +9 -0
- package/src/utils/fetch-loader.ts +3 -3
package/dist/hls.light.js
CHANGED
@@ -1028,7 +1028,7 @@
|
|
1028
1028
|
// Some browsers don't allow to use bind on console object anyway
|
1029
1029
|
// fallback to default if needed
|
1030
1030
|
try {
|
1031
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.
|
1031
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.10809");
|
1032
1032
|
} catch (e) {
|
1033
1033
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1034
1034
|
return createLogger();
|
@@ -10411,7 +10411,8 @@
|
|
10411
10411
|
var _this = this;
|
10412
10412
|
if (this.useSoftware) {
|
10413
10413
|
return new Promise(function (resolve, reject) {
|
10414
|
-
|
10414
|
+
var dataView = ArrayBuffer.isView(data) ? data : new Uint8Array(data);
|
10415
|
+
_this.softwareDecrypt(dataView, key, iv, aesMode);
|
10415
10416
|
var decryptResult = _this.flush();
|
10416
10417
|
if (decryptResult) {
|
10417
10418
|
resolve(decryptResult.buffer);
|
@@ -14098,7 +14099,8 @@
|
|
14098
14099
|
// For Low-Latency HLS Parts, decrypt in place, since part parsing is expected on push progress
|
14099
14100
|
var loadingParts = chunkMeta.part > -1;
|
14100
14101
|
if (loadingParts) {
|
14101
|
-
|
14102
|
+
var _data = decrypter.flush();
|
14103
|
+
decryptedData = _data ? _data.buffer : _data;
|
14102
14104
|
}
|
14103
14105
|
if (!decryptedData) {
|
14104
14106
|
stats.executeEnd = now();
|
@@ -14178,7 +14180,7 @@
|
|
14178
14180
|
var decryptedData = decrypter.flush();
|
14179
14181
|
if (decryptedData) {
|
14180
14182
|
// Push always returns a TransmuxerResult if decryptdata is null
|
14181
|
-
transmuxResults.push(this.push(decryptedData, null, chunkMeta));
|
14183
|
+
transmuxResults.push(this.push(decryptedData.buffer, null, chunkMeta));
|
14182
14184
|
}
|
14183
14185
|
}
|
14184
14186
|
var demuxer = this.demuxer,
|
@@ -14535,7 +14537,7 @@
|
|
14535
14537
|
return reader.read().then(function (data) {
|
14536
14538
|
if (data.done) {
|
14537
14539
|
if (chunkCache.dataLength) {
|
14538
|
-
onProgress(stats, context, chunkCache.flush(), response);
|
14540
|
+
onProgress(stats, context, chunkCache.flush().buffer, response);
|
14539
14541
|
}
|
14540
14542
|
return Promise.resolve(new ArrayBuffer(0));
|
14541
14543
|
}
|
@@ -14548,12 +14550,12 @@
|
|
14548
14550
|
chunkCache.push(chunk);
|
14549
14551
|
if (chunkCache.dataLength >= highWaterMark) {
|
14550
14552
|
// flush in order to join the typed arrays
|
14551
|
-
onProgress(stats, context, chunkCache.flush(), response);
|
14553
|
+
onProgress(stats, context, chunkCache.flush().buffer, response);
|
14552
14554
|
}
|
14553
14555
|
} else {
|
14554
14556
|
// If there's nothing cached already, and the chache is large enough
|
14555
14557
|
// just emit the progress event
|
14556
|
-
onProgress(stats, context, chunk, response);
|
14558
|
+
onProgress(stats, context, chunk.buffer, response);
|
14557
14559
|
}
|
14558
14560
|
return _pump();
|
14559
14561
|
}).catch(function () {
|
@@ -19756,7 +19758,7 @@
|
|
19756
19758
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
19757
19759
|
}
|
19758
19760
|
|
19759
|
-
var version = "1.6.0-beta.1.0.canary.
|
19761
|
+
var version = "1.6.0-beta.1.0.canary.10809";
|
19760
19762
|
|
19761
19763
|
// ensure the worker ends up in the bundle
|
19762
19764
|
// If the worker should not be included this gets aliased to empty.js
|