From 42fe1e61ba88e90ebb7f10cc837f38e0f4f354fc Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Tue, 12 Mar 2024 12:10:34 -0700 Subject: [PATCH] chore: add contrib-eme errors (#8634) --- src/js/consts/errors.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/js/consts/errors.js b/src/js/consts/errors.js index 6956b94203..f78f7be0cf 100644 --- a/src/js/consts/errors.js +++ b/src/js/consts/errors.js @@ -9,12 +9,23 @@ export default { SegmentAppendError: 'segment-append-error', VttLoadError: 'vtt-load-error', VttCueParsingError: 'vtt-cue-parsing-error', - EMEKeySessionCreationError: 'eme-key-session-creation-error', // Errors used in contrib-ads: AdsBeforePrerollError: 'ads-before-preroll-error', AdsPrerollError: 'ads-preroll-error', AdsMidrollError: 'ads-midroll-error', AdsPostrollError: 'ads-postroll-error', AdsMacroReplacementFailed: 'ads-macro-replacement-failed', - AdsResumeContentFailed: 'ads-resume-content-failed' + AdsResumeContentFailed: 'ads-resume-content-failed', + // Errors used in contrib-eme: + EMEEncryptedError: 'eme-encrypted-error', + MSKeyError: 'ms-key-error', + WebkitKeyError: 'webkit-key-error', + EMEFailedToRequestMediaKeySystemAccess: 'eme-failed-request-media-key-system-access', + EMEFailedToCreateMediaKeys: 'eme-failed-create-media-keys', + EMEFailedToAttachMediaKeysToVideoElement: 'eme-failed-attach-media-keys-to-video', + EMEFailedToCreateMediaKeySession: 'eme-failed-create-media-key-session', + EMEFailedToSetServerCertificate: 'eme-failed-set-server-certificate', + EMEFailedToGenerateLicenseRequest: 'eme-failed-generate-license-request', + EMEFailedToUpdateSessionWithReceivedLicenseKeys: 'eme-failed-update-session', + EMEFailedToCloseSession: 'eme-failed-close-session' };