From 9950a2ba219e244c6aaed18e69c7377c0575b581 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 3 Nov 2025 11:05:54 +0100 Subject: [PATCH] ov-components: Add E2EEKey directive and integrate E2EE configuration in OpenViduService ov-components: Update E2EE error messages for improved clarity across multiple languages --- .../avatar-profile.component.scss | 31 ------- .../avatar-profile.component.ts | 31 ------- .../media-element/media-element.component.ts | 17 ++-- .../participant-panel-item.component.html | 70 +++++++++------- .../components/session/session.component.ts | 15 +++- .../components/stream/stream.component.html | 83 ++++++++++--------- .../video-poster/video-poster.component.html | 31 +++++++ .../video-poster/video-poster.component.scss | 74 +++++++++++++++++ .../video-poster/video-poster.component.ts | 20 +++++ .../directives/api/api.directive.module.ts | 6 +- .../lib/directives/api/internals.directive.ts | 48 +++++++++++ .../src/lib/lang/cn.json | 4 +- .../src/lib/lang/de.json | 4 +- .../src/lib/lang/en.json | 4 +- .../src/lib/lang/es.json | 4 +- .../src/lib/lang/fr.json | 4 +- .../src/lib/lang/hi.json | 4 +- .../src/lib/lang/it.json | 4 +- .../src/lib/lang/ja.json | 4 +- .../src/lib/lang/nl.json | 4 +- .../src/lib/lang/pt.json | 4 +- .../src/lib/models/participant.model.ts | 19 +++++ .../openvidu-components-angular-ui.module.ts | 4 +- .../config/directive-config.service.ts | 13 ++- .../lib/services/openvidu/openvidu.service.ts | 47 +++++++++-- .../participant/participant.service.ts | 20 +++++ 26 files changed, 407 insertions(+), 162 deletions(-) delete mode 100644 openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.scss delete mode 100644 openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.ts create mode 100644 openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/video-poster/video-poster.component.html create mode 100644 openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/video-poster/video-poster.component.scss create mode 100644 openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/video-poster/video-poster.component.ts diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.scss b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.scss deleted file mode 100644 index 9ec7407ba..000000000 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.scss +++ /dev/null @@ -1,31 +0,0 @@ -.poster { - height: 100%; - width: 100%; - background-color: var(--ov-video-background, var(--ov-primary-action-color)); - position: absolute; - z-index: 888; - border-radius: var(--ov-video-radius); -} - -.initial { - position: absolute; - display: inline-grid; - z-index: 1; - margin: auto; - bottom: 0; - right: 0; - left: 0; - top: 0; - height: 70px; - width: 70px; - border-radius: var(--ov-video-radius); - border: 2px solid var(--ov-text-primary-color); - color: var(--ov-video-background, var(--ov-text-primary-color)); -} - -#poster-text { - padding: 0px !important; - font-weight: bold; - font-size: 40px; - margin: auto; -} \ No newline at end of file diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.ts deleted file mode 100644 index b6e9b21ed..000000000 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/avatar-profile/avatar-profile.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Component, Input } from '@angular/core'; - -/** - * @internal - */ - -@Component({ - selector: 'ov-avatar-profile', - template: ` -
{{ 'ERRORS.E2EE_ERROR_CONTENT' | translate }}
+