From 5dc44df93ed0b1f2c9c144165c5171df42aa94a0 Mon Sep 17 00:00:00 2001 From: Tzipi <101048005+Tzipi-kaltura@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:59:05 +0300 Subject: [PATCH] fix(SUP-43014): [elearning] specified error message for v7 for IP restriction (#936) Description of the Changes Add specific message to IP restriction. part of - kaltura/playkit-js#791, kaltura/kaltura-player-js#846 Resolves SUP-43014 --- src/components/error-overlay/error-message-provider.ts | 4 +++- translations/en.i18n.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/error-overlay/error-message-provider.ts b/src/components/error-overlay/error-message-provider.ts index 86f8450a9..b097e5fd1 100644 --- a/src/components/error-overlay/error-message-provider.ts +++ b/src/components/error-overlay/error-message-provider.ts @@ -27,7 +27,9 @@ const errorsMap: Map = new Map([ /** GEOLOCATION */ [13, {title: 'geo_location_error_title', message: 'geo_location_error_message'}], /** KS RESTRICTION */ - [14, {title: 'media_unavailable_error_title', message: 'media_unavailable_error_message'}] + [14, {title: 'media_unavailable_error_title', message: 'media_unavailable_error_message'}], + /** IP RESTRICTION */ + [15, {title: 'media_unavailable_error_title', message: 'ip_restricted_error_message'}] ]); const defaultError: ErrorDetails = { diff --git a/translations/en.i18n.json b/translations/en.i18n.json index b6dbb5130..bfd0deb65 100644 --- a/translations/en.i18n.json +++ b/translations/en.i18n.json @@ -87,6 +87,7 @@ "media_not_ready_error_message": "Media is processing, check back soon.", "geo_location_error_title": "Geo location unavailable", "geo_location_error_message": "This content is unavailable in your region.", + "ip_restricted_error_message": "This media has been restricted to certain IP addresses.", "default_session_text": "Copy for customer care: session ID", "retry": "Try again" },