hls.js 1.5.9-0.canary.10275 → 1.5.9-0.canary.10277
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 +11 -9
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +12 -11
- 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 +12 -11
- 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 +11 -9
- 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 +1 -1
- package/src/crypt/decrypter.ts +13 -6
- package/src/crypt/fast-aes-key.ts +2 -2
- package/src/demux/transmuxer-interface.ts +1 -0
- package/src/demux/tsdemuxer.ts +2 -3
package/dist/hls.js
CHANGED
@@ -637,7 +637,7 @@
|
|
637
637
|
// Some browsers don't allow to use bind on console object anyway
|
638
638
|
// fallback to default if needed
|
639
639
|
try {
|
640
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.
|
640
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10277");
|
641
641
|
} catch (e) {
|
642
642
|
/* log fn threw an exception. All logger methods are no-ops. */
|
643
643
|
return createLogger();
|
@@ -9589,7 +9589,7 @@
|
|
9589
9589
|
/* no-op */
|
9590
9590
|
}
|
9591
9591
|
}
|
9592
|
-
this.useSoftware = this.subtle
|
9592
|
+
this.useSoftware = !this.subtle;
|
9593
9593
|
}
|
9594
9594
|
var _proto = Decrypter.prototype;
|
9595
9595
|
_proto.destroy = function destroy() {
|
@@ -9687,18 +9687,20 @@
|
|
9687
9687
|
};
|
9688
9688
|
_proto.webCryptoDecrypt = function webCryptoDecrypt(data, key, iv, aesMode) {
|
9689
9689
|
var _this2 = this;
|
9690
|
-
var subtle = this.subtle;
|
9691
9690
|
if (this.key !== key || !this.fastAesKey) {
|
9691
|
+
if (!this.subtle) {
|
9692
|
+
return Promise.resolve(this.onWebCryptoError(data, key, iv, aesMode));
|
9693
|
+
}
|
9692
9694
|
this.key = key;
|
9693
|
-
this.fastAesKey = new FastAESKey(subtle, key, aesMode);
|
9695
|
+
this.fastAesKey = new FastAESKey(this.subtle, key, aesMode);
|
9694
9696
|
}
|
9695
9697
|
return this.fastAesKey.expandKey().then(function (aesKey) {
|
9696
9698
|
// decrypt using web crypto
|
9697
|
-
if (!subtle) {
|
9699
|
+
if (!_this2.subtle) {
|
9698
9700
|
return Promise.reject(new Error('web crypto not initialized'));
|
9699
9701
|
}
|
9700
9702
|
_this2.logOnce('WebCrypto AES decrypt');
|
9701
|
-
var crypto = new AESCrypto(subtle, new Uint8Array(iv), aesMode);
|
9703
|
+
var crypto = new AESCrypto(_this2.subtle, new Uint8Array(iv), aesMode);
|
9702
9704
|
return crypto.decrypt(data.buffer, aesKey);
|
9703
9705
|
}).catch(function (err) {
|
9704
9706
|
logger.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, " + err.name + ": " + err.message);
|
@@ -14199,8 +14201,7 @@
|
|
14199
14201
|
case 0xc2: // SAMPLE-AES EC3
|
14200
14202
|
/* falls through */
|
14201
14203
|
case 0x87:
|
14202
|
-
|
14203
|
-
break;
|
14204
|
+
throw new Error('Unsupported EC-3 in M2TS found');
|
14204
14205
|
case 0x24:
|
14205
14206
|
// ITU-T Rec. H.265 and ISO/IEC 23008-2 (HEVC)
|
14206
14207
|
{
|
@@ -17330,6 +17331,7 @@
|
|
17330
17331
|
type: ErrorTypes.MEDIA_ERROR,
|
17331
17332
|
details: ErrorDetails.FRAG_PARSING_ERROR,
|
17332
17333
|
chunkMeta: chunkMeta,
|
17334
|
+
frag: this.frag || undefined,
|
17333
17335
|
fatal: false,
|
17334
17336
|
error: error,
|
17335
17337
|
err: error,
|
@@ -30528,7 +30530,7 @@
|
|
30528
30530
|
* Get the video-dev/hls.js package version.
|
30529
30531
|
*/
|
30530
30532
|
function get() {
|
30531
|
-
return "1.5.9-0.canary.
|
30533
|
+
return "1.5.9-0.canary.10277";
|
30532
30534
|
}
|
30533
30535
|
}, {
|
30534
30536
|
key: "Events",
|