Skip to content

Commit

Permalink
Send better error when no keySystems option is set when playing an en…
Browse files Browse the repository at this point in the history
…crypted content
  • Loading branch information
peaBerberian committed Jun 23, 2023
1 parent 67741f5 commit faae0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/init/utils/initialize_content_decryption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default function initializeContentDecryption(
return;
}
stopListening();
log.error("Init: Encrypted event but EME feature not activated");
log.error("Init: Encrypted event but no `keySystems` given");
const err = new EncryptedMediaError("MEDIA_IS_ENCRYPTED_ERROR",
"EME feature not activated.");
"no `keySystems` given.");
callbacks.onError(err);
}, { clearSignal: cancelSignal });
const ref = createSharedReference({
Expand Down

0 comments on commit faae0a7

Please sign in to comment.