hls.js 1.6.1-0.canary.11110 → 1.6.1-0.canary.11111

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.mjs CHANGED
@@ -523,7 +523,7 @@ function enableLogs(debugConfig, context, id) {
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.6.1-0.canary.11110"}`);
526
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.1-0.canary.11111"}`);
527
527
  } catch (e) {
528
528
  /* log fn threw an exception. All logger methods are no-ops. */
529
529
  return createLogger();
@@ -10243,7 +10243,7 @@ function requireEventemitter3 () {
10243
10243
  var eventemitter3Exports = requireEventemitter3();
10244
10244
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
10245
10245
 
10246
- const version = "1.6.1-0.canary.11110";
10246
+ const version = "1.6.1-0.canary.11111";
10247
10247
 
10248
10248
  // ensure the worker ends up in the bundle
10249
10249
  // If the worker should not be included this gets aliased to empty.js
@@ -22101,6 +22101,13 @@ class EMEController extends Logger {
22101
22101
  }
22102
22102
  onKeyStatusChange(mediaKeySessionContext) {
22103
22103
  mediaKeySessionContext.mediaKeysSession.keyStatuses.forEach((status, keyId) => {
22104
+ // keyStatuses.forEach is not standard API so the callback value looks weird on xboxone
22105
+ // xboxone callback(keyId, status) so we need to exchange them
22106
+ if (typeof keyId === 'string' && typeof status === 'object') {
22107
+ const temp = keyId;
22108
+ keyId = status;
22109
+ status = temp;
22110
+ }
22104
22111
  this.log(`key status change "${status}" for keyStatuses keyId: ${Hex.hexDump('buffer' in keyId ? new Uint8Array(keyId.buffer, keyId.byteOffset, keyId.byteLength) : new Uint8Array(keyId))} session keyId: ${Hex.hexDump(new Uint8Array(mediaKeySessionContext.decryptdata.keyId || []))} uri: ${mediaKeySessionContext.decryptdata.uri}`);
22105
22112
  mediaKeySessionContext.keyStatus = status;
22106
22113
  });