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.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.10646");
|
527
527
|
} catch (e) {
|
528
528
|
/* log fn threw an exception. All logger methods are no-ops. */
|
529
529
|
return createLogger();
|
@@ -17341,7 +17341,7 @@
|
|
17341
17341
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
17342
17342
|
}
|
17343
17343
|
|
17344
|
-
var version = "1.5.14-0.canary.
|
17344
|
+
var version = "1.5.14-0.canary.10646";
|
17345
17345
|
|
17346
17346
|
// ensure the worker ends up in the bundle
|
17347
17347
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -24271,6 +24271,9 @@
|
|
24271
24271
|
keySessionContextPromise = keyIdToKeySessionPromise[keyIdHex] = keySessionContextPromise.then(function () {
|
24272
24272
|
return _this.generateRequestWithPreferredKeySession(keyContext, initDataType, initData, 'encrypted-event-key-match');
|
24273
24273
|
});
|
24274
|
+
keySessionContextPromise.catch(function (error) {
|
24275
|
+
return _this.handleError(error);
|
24276
|
+
});
|
24274
24277
|
return 1; // break
|
24275
24278
|
}
|
24276
24279
|
},
|
@@ -24300,10 +24303,10 @@
|
|
24300
24303
|
return _this.generateRequestWithPreferredKeySession(keySessionContext, initDataType, initData, 'encrypted-event-no-match');
|
24301
24304
|
});
|
24302
24305
|
});
|
24306
|
+
keySessionContextPromise.catch(function (error) {
|
24307
|
+
return _this.handleError(error);
|
24308
|
+
});
|
24303
24309
|
}
|
24304
|
-
keySessionContextPromise.catch(function (error) {
|
24305
|
-
return _this.handleError(error);
|
24306
|
-
});
|
24307
24310
|
};
|
24308
24311
|
_this.onWaitingForKey = function (event) {
|
24309
24312
|
_this.log("\"" + event.type + "\" event");
|
@@ -24667,8 +24670,11 @@
|
|
24667
24670
|
_this8.log("\"" + messageType + "\" message event for session \"" + keySession.sessionId + "\" message size: " + message.byteLength);
|
24668
24671
|
if (messageType === 'license-request' || messageType === 'license-renewal') {
|
24669
24672
|
_this8.renewLicense(context, message).catch(function (error) {
|
24670
|
-
|
24671
|
-
|
24673
|
+
if (licenseStatus.eventNames().length) {
|
24674
|
+
licenseStatus.emit('error', error);
|
24675
|
+
} else {
|
24676
|
+
_this8.handleError(error);
|
24677
|
+
}
|
24672
24678
|
});
|
24673
24679
|
} else if (messageType === 'license-release') {
|
24674
24680
|
if (context.keySystem === KeySystems.FAIRPLAY) {
|
@@ -24978,6 +24984,8 @@
|
|
24978
24984
|
|
24979
24985
|
// keep reference of media
|
24980
24986
|
this.media = media;
|
24987
|
+
media.removeEventListener('encrypted', this.onMediaEncrypted);
|
24988
|
+
media.removeEventListener('waitingforkey', this.onWaitingForKey);
|
24981
24989
|
media.addEventListener('encrypted', this.onMediaEncrypted);
|
24982
24990
|
media.addEventListener('waitingforkey', this.onWaitingForKey);
|
24983
24991
|
};
|