From faae0a7f0219ad7ee60edd11fa794769390f3084 Mon Sep 17 00:00:00 2001 From: Paul Berberian Date: Fri, 23 Jun 2023 17:11:58 +0200 Subject: [PATCH] Send better error when no keySystems option is set when playing an encrypted content --- src/core/init/utils/initialize_content_decryption.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/init/utils/initialize_content_decryption.ts b/src/core/init/utils/initialize_content_decryption.ts index 263948b8c1..9813e6791b 100644 --- a/src/core/init/utils/initialize_content_decryption.ts +++ b/src/core/init/utils/initialize_content_decryption.ts @@ -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({