hls.js 1.5.14-0.canary.10643 → 1.5.14-0.canary.10646
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 +15 -7
- 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 -5
- 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 +9 -3
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.10646"}`);
|
425
425
|
} catch (e) {
|
426
426
|
/* log fn threw an exception. All logger methods are no-ops. */
|
427
427
|
return createLogger();
|
@@ -11092,7 +11092,7 @@ function concatUint8Arrays(chunks, dataLength) {
|
|
11092
11092
|
return result;
|
11093
11093
|
}
|
11094
11094
|
|
11095
|
-
const version = "1.5.14-0.canary.
|
11095
|
+
const version = "1.5.14-0.canary.10646";
|
11096
11096
|
|
11097
11097
|
// ensure the worker ends up in the bundle
|
11098
11098
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -23677,6 +23677,7 @@ class EMEController extends Logger {
|
|
23677
23677
|
keySessionContextPromise = keyIdToKeySessionPromise[keyIdHex] = keySessionContextPromise.then(() => {
|
23678
23678
|
return this.generateRequestWithPreferredKeySession(keyContext, initDataType, initData, 'encrypted-event-key-match');
|
23679
23679
|
});
|
23680
|
+
keySessionContextPromise.catch(error => this.handleError(error));
|
23680
23681
|
break;
|
23681
23682
|
}
|
23682
23683
|
}
|
@@ -23701,8 +23702,8 @@ class EMEController extends Logger {
|
|
23701
23702
|
return this.generateRequestWithPreferredKeySession(keySessionContext, initDataType, initData, 'encrypted-event-no-match');
|
23702
23703
|
});
|
23703
23704
|
});
|
23705
|
+
keySessionContextPromise.catch(error => this.handleError(error));
|
23704
23706
|
}
|
23705
|
-
keySessionContextPromise.catch(error => this.handleError(error));
|
23706
23707
|
};
|
23707
23708
|
this.onWaitingForKey = event => {
|
23708
23709
|
this.log(`"${event.type}" event`);
|
@@ -24051,8 +24052,11 @@ class EMEController extends Logger {
|
|
24051
24052
|
this.log(`"${messageType}" message event for session "${keySession.sessionId}" message size: ${message.byteLength}`);
|
24052
24053
|
if (messageType === 'license-request' || messageType === 'license-renewal') {
|
24053
24054
|
this.renewLicense(context, message).catch(error => {
|
24054
|
-
|
24055
|
-
|
24055
|
+
if (licenseStatus.eventNames().length) {
|
24056
|
+
licenseStatus.emit('error', error);
|
24057
|
+
} else {
|
24058
|
+
this.handleError(error);
|
24059
|
+
}
|
24056
24060
|
});
|
24057
24061
|
} else if (messageType === 'license-release') {
|
24058
24062
|
if (context.keySystem === KeySystems.FAIRPLAY) {
|
@@ -24356,6 +24360,8 @@ class EMEController extends Logger {
|
|
24356
24360
|
|
24357
24361
|
// keep reference of media
|
24358
24362
|
this.media = media;
|
24363
|
+
media.removeEventListener('encrypted', this.onMediaEncrypted);
|
24364
|
+
media.removeEventListener('waitingforkey', this.onWaitingForKey);
|
24359
24365
|
media.addEventListener('encrypted', this.onMediaEncrypted);
|
24360
24366
|
media.addEventListener('waitingforkey', this.onWaitingForKey);
|
24361
24367
|
}
|