hls.js 1.5.14-0.canary.10593 → 1.5.14-0.canary.10596
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 +2 -2
- package/dist/hls.light.min.js +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 +11 -9
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/eme-controller.ts +29 -26
package/dist/hls.mjs
CHANGED
@@ -421,7 +421,7 @@ function enableLogs(debugConfig, context, id) {
|
|
421
421
|
// Some browsers don't allow to use bind on console object anyway
|
422
422
|
// fallback to default if needed
|
423
423
|
try {
|
424
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.
|
424
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10596"}`);
|
425
425
|
} catch (e) {
|
426
426
|
/* log fn threw an exception. All logger methods are no-ops. */
|
427
427
|
return createLogger();
|
@@ -11079,7 +11079,7 @@ function concatUint8Arrays(chunks, dataLength) {
|
|
11079
11079
|
return result;
|
11080
11080
|
}
|
11081
11081
|
|
11082
|
-
const version = "1.5.14-0.canary.
|
11082
|
+
const version = "1.5.14-0.canary.10596";
|
11083
11083
|
|
11084
11084
|
// ensure the worker ends up in the bundle
|
11085
11085
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -23897,9 +23897,9 @@ class EMEController extends Logger {
|
|
23897
23897
|
const keyId = this.getKeyIdString(decryptdata);
|
23898
23898
|
const keyDetails = `(keyId: ${keyId} format: "${decryptdata.keyFormat}" method: ${decryptdata.method} uri: ${decryptdata.uri})`;
|
23899
23899
|
this.log(`Starting session for key ${keyDetails}`);
|
23900
|
-
let
|
23901
|
-
if (!
|
23902
|
-
|
23900
|
+
let keyContextPromise = this.keyIdToKeySessionPromise[keyId];
|
23901
|
+
if (!keyContextPromise) {
|
23902
|
+
keyContextPromise = this.getKeySystemForKeyPromise(decryptdata).then(({
|
23903
23903
|
keySystem,
|
23904
23904
|
mediaKeys
|
23905
23905
|
}) => {
|
@@ -23907,18 +23907,20 @@ class EMEController extends Logger {
|
|
23907
23907
|
this.log(`Handle encrypted media sn: ${data.frag.sn} ${data.frag.type}: ${data.frag.level} using key ${keyDetails}`);
|
23908
23908
|
return this.attemptSetMediaKeys(keySystem, mediaKeys).then(() => {
|
23909
23909
|
this.throwIfDestroyed();
|
23910
|
-
|
23910
|
+
return this.createMediaKeySessionContext({
|
23911
23911
|
keySystem,
|
23912
23912
|
mediaKeys,
|
23913
23913
|
decryptdata
|
23914
23914
|
});
|
23915
|
-
const scheme = 'cenc';
|
23916
|
-
return this.generateRequestWithPreferredKeySession(keySessionContext, scheme, decryptdata.pssh, 'playlist-key');
|
23917
23915
|
});
|
23918
23916
|
});
|
23917
|
+
const keySessionContextPromise = this.keyIdToKeySessionPromise[keyId] = keyContextPromise.then(keySessionContext => {
|
23918
|
+
const scheme = 'cenc';
|
23919
|
+
return this.generateRequestWithPreferredKeySession(keySessionContext, scheme, decryptdata.pssh, 'playlist-key');
|
23920
|
+
});
|
23919
23921
|
keySessionContextPromise.catch(error => this.handleError(error));
|
23920
23922
|
}
|
23921
|
-
return
|
23923
|
+
return keyContextPromise;
|
23922
23924
|
}
|
23923
23925
|
throwIfDestroyed(message = 'Invalid state') {
|
23924
23926
|
if (!this.hls) {
|