Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(recording): redesign the record & transcribe dialog (#17746)

Mihaela Dumitruf648b650ed29
diff --git a/css/_recording.scss b/css/_recording.scss
index 612584c3a8..18c81ce53b 100644
--- a/css/_recording.scss
+++ b/css/_recording.scss
@@ -1,151 +1,3 @@
-.recording-dialog {
- flex: 0;
- flex-direction: column;
-
- .recording-header {
- align-items: center;
- display: flex;
- flex: 0;
- flex-direction: row;
- justify-content: space-between;
-
- .recording-title {
- display: inline-flex;
- align-items: center;
- font-size: 0.875rem;
- margin-left: 16px;
- max-width: 70%;
-
- &-no-space {
- margin-left: 0;
- }
- }
-
- &.space-top {
- margin-top: 10px;
- }
- }
-
- .recording-header-line {
- border-top: 1px solid #5e6d7a;
- padding-top: 16px;
- margin-top: 16px;
- }
-
- .local-recording-warning {
- margin-top: 8px;
- display: block;
- font-size: 0.875rem;
- line-height: 1.25rem;
- padding: 8px 16px;
-
- &.text {
- color: #fff;
- background-color: #3D3D3D;
- }
-
- &.notification {
- color: #040404;
- background-color: #F8AE1A;
- }
- }
-
- .recording-icon-container {
- display: inline-flex;
- align-items: center;
- }
-
- .file-sharing-icon-container {
- background-color: #525252;
- border-radius: 4px;
- height: 40px;
- justify-content: center;
- width: 42px;
- }
-
- .cloud-content-recording-icon-container {
- background-color: #FFFFFF;
- border-radius: 4px;
- height: 40px;
- justify-content: center;
- width: 40px;
- }
-
- .jitsi-recording-header {
- margin-bottom: 16px;
- }
-
- .jitsi-content-recording-icon-container-with-switch {
- background-color: #FFFFFF;
- border-radius: 4px;
- height: 40px;
- width: 40px;
- }
-
- .jitsi-content-recording-icon-container-without-switch {
- background-color: #FFFFFF;
- border-radius: 4px;
- height: 40px;
- width: 46px;
- }
-
- .recording-icon {
- height: 40px;
- object-fit: contain;
- width: 40px;
- }
-
- .content-recording-icon {
- height: 18px;
- margin: 10px 0 0 10px;
- object-fit: contain;
- width: 18px;
- }
-
- .recording-file-sharing-icon {
- height: 18px;
- object-fit: contain;
- width: 18px;
- }
-
- .recording-info{
- background-color: #FFD740;
- color: black;
- display: inline-flex;
- margin: 16px 0 8px;
- width: 100%;
- }
-
- .recording-info-icon {
- align-self: center;
- height: 14px;
- margin: 0 24px 0 16px;
- object-fit: contain;
- width: 14px;
- }
-
- .recording-info-title {
- display: inline-flex;
- font-size: 0.875rem;
- width: 290px
- }
-
- .recording-switch {
- margin-left: auto;
- }
-
- .authorization-panel {
- display: flex;
- flex-direction: column;
- margin: 0 40px 10px 40px;
- padding-bottom: 10px;
-
- .logged-in-panel {
- padding: 10px;
- }
- }
-}
-
.live-stream-dialog {
/**
* Set font-size to be consistent with Atlaskit FieldText.
diff --git a/images/downloadLocalRecording.png b/images/downloadLocalRecording.png
deleted file mode 100644
index 3e499cd65c..0000000000
Binary files a/images/downloadLocalRecording.png and /dev/null differ
diff --git a/images/dropboxLogo_square.png b/images/dropboxLogo_square.png
deleted file mode 100644
index 2ea909309d..0000000000
Binary files a/images/dropboxLogo_square.png and /dev/null differ
diff --git a/images/icon-cloud.png b/images/icon-cloud.png
deleted file mode 100644
index 6ea1b95722..0000000000
Binary files a/images/icon-cloud.png and /dev/null differ
diff --git a/lang/main-af.json b/lang/main-af.json
index 39549c43cd..65238f410b 100644
--- a/lang/main-af.json
+++ b/lang/main-af.json
@@ -441,7 +441,6 @@
"off": "Opname gestop",
"on": "Neem tans op",
"pending": "Berei voor om vergadering op te neem…",
- "serviceDescription": "",
"serviceName": "Opneemdiens",
"signIn": "meld aan",
"signOut": "Meld af",
diff --git a/lang/main-ar.json b/lang/main-ar.json
index 270f137ca9..4fd21a13ed 100644
--- a/lang/main-ar.json
+++ b/lang/main-ar.json
@@ -900,7 +900,6 @@
"onlyRecordSelf": "تسجيل فقط دفق الصوت والفيديو الخاصة بي",
"pending": "التحضير لتسجيل المُلتقى…",
"saveLocalRecording": "حفظ ملف التسجيل محليا",
- "serviceDescription": "ستحفظ خدمة التسجيل الفيديو المستجل",
"serviceDescriptionCloud": "تسجيل سحابي",
"serviceDescriptionCloudInfo": "يتم مسح المُلتقيات المسجلة تلقائيًا بعد 24 ساعة من وقت التسجيل.",
"serviceName": "خدمة التسجيل",
@@ -910,8 +909,7 @@
"surfaceError": "الرجاء تحديد علامة التبويب الحالية.",
"title": "قيد التسجيل",
"unavailable": "عجبًا! {{serviceName}} غير متاحة حاليًا. نعمل على حل المشكلة. حاول مرة أخرى لاحقًا.",
- "unavailableTitle": "التسجيل غير متاح",
- "uploadToCloud": "تحميل إلى السحابة"
+ "unavailableTitle": "التسجيل غير متاح"
},
"screenshareDisplayName": "شاشة {{name}}",
"sectionList": {
diff --git a/lang/main-be.json b/lang/main-be.json
index c6a4a96416..67fd74f6ab 100644
--- a/lang/main-be.json
+++ b/lang/main-be.json
@@ -474,7 +474,6 @@
"on": "Запіс",
"onBy": "{{name}} ўключыў запіс",
"pending": "Падрыхтоўка запісу канферэнцыі…",
- "serviceDescription": "Ваш запіс будзе захаваны адпаведнай службай",
"serviceName": "Служба запісу",
"signIn": "Уваход",
"signOut": "Выхад",
diff --git a/lang/main-bg.json b/lang/main-bg.json
index f59660bafd..d7ded7777c 100644
--- a/lang/main-bg.json
+++ b/lang/main-bg.json
@@ -1127,19 +1127,16 @@
"recordAudioAndVideo": "Записвай аудио и видео",
"recordTranscription": "Записвай транскрипция",
"saveLocalRecording": "Запази записа локално (Бета)",
- "serviceDescription": "Записът Ви ще се запише от специална записваща услуга",
"serviceDescriptionCloud": "Облачен запис",
"serviceDescriptionCloudInfo": "Записаните срещи автоматично се изчистват 24 часа след времето на записа.",
"serviceName": "Записваща услуга",
"sessionAlreadyActive": "Тази сесия вече се записва или излъчва на живо.",
- "showAdvancedOptions": "Разширени опции",
"signIn": "Влизане",
"signOut": "Излизане",
"surfaceError": "Моля, изберете текущия таб.",
"title": "Запис",
"unavailable": "Упс! В момента {{serviceName}} е недостъпна. В момента се опитваме да решим проблема. Моля, опитайте отново малко по-късно.",
- "unavailableTitle": "Записът е невъзможен",
- "uploadToCloud": "Качи в облака"
+ "unavailableTitle": "Записът е невъзможен"
},
"screenshareDisplayName": "Екранът на {{name}}",
"sectionList": {
diff --git a/lang/main-ca.json b/lang/main-ca.json
index 86bcad3b25..6837ba5d20 100644
--- a/lang/main-ca.json
+++ b/lang/main-ca.json
@@ -906,7 +906,6 @@
"onlyRecordSelf": "Enregistra només el meu àudio i vídeo",
"pending": "S'està preparant per a enregistrar la reunió…",
"saveLocalRecording": "Desa el fitxer de l'enregistrament en local (beta)",
- "serviceDescription": "El servei d'enregistrament desarà el vostre enregistrament",
"serviceDescriptionCloud": "Enregistrament al núvol",
"serviceDescriptionCloudInfo": "Les reunions enregistrades s'esborren automàticament 24 hores després de l'enregistrament.",
"serviceName": "Servei d'enregistrament",
@@ -916,8 +915,7 @@
"surfaceError": "Trieu la pestanya actual.",
"title": "Enregistrament",
"unavailable": "Vaja! El servei {{serviceName}} ara mateix no és disponible. Treballem per a resoldre el problema. Torneu-ho a intentar més tard.",
- "unavailableTitle": "L'enregistrament no és disponible",
- "uploadToCloud": "Puja al núvol"
+ "unavailableTitle": "L'enregistrament no és disponible"
},
"screenshareDisplayName": "Pantalla de: {{name}}",
"sectionList": {
diff --git a/lang/main-cs.json b/lang/main-cs.json
index 0d1d0feb99..2df8b4d4f5 100644
--- a/lang/main-cs.json
+++ b/lang/main-cs.json
@@ -1052,19 +1052,16 @@
"recordAudioAndVideo": "Záznam zvuku a videa",
"recordTranscription": "Přepis záznamu",
"saveLocalRecording": "Uložit záznamový soubor lokálně (Beta)",
- "serviceDescription": "Nahrávací služba uloží vaši nahrávku",
"serviceDescriptionCloud": "Cloudové nahrávání",
"serviceDescriptionCloudInfo": "Nahrané schůzky jsou automaticky vymazány 24 hodin po jejich době záznamu.",
"serviceName": "Nahrávací služba",
"sessionAlreadyActive": "Tato relace se již nahrává nebo se vysílá živě.",
- "showAdvancedOptions": "Pokročilé možnosti",
"signIn": "Přihlásit se",
"signOut": "Odhlásit se",
"surfaceError": "Vyberte prosím aktuální kartu.",
"title": "Nahrávání",
"unavailable": "Jejda! Služba {{serviceName}} není dostupná. Problém se snažíme vyřešit. Zkuste to prosím později.",
- "unavailableTitle": "Nahrávání nedostupné",
- "uploadToCloud": "Nahrát do cloudu"
+ "unavailableTitle": "Nahrávání nedostupné"
},
"screenshareDisplayName": "Obrazovka uživatele {{name}}",
"sectionList": {
diff --git a/lang/main-da.json b/lang/main-da.json
index 2239743121..f606e2e518 100644
--- a/lang/main-da.json
+++ b/lang/main-da.json
@@ -1144,19 +1144,16 @@
"recordAudioAndVideo": "Optag video og lyd",
"recordTranscription": "Optag transkribering",
"saveLocalRecording": "Gem optagelsesfil lokalt (beta)",
- "serviceDescription": "Din optagelse gemmes af optagelsestjenesten",
"serviceDescriptionCloud": "Skyoptagelse",
"serviceDescriptionCloudInfo": "Registrerede møder ryddes automatisk 24 timer efter deres optagelsestid.",
"serviceName": "Optagelsestjeneste",
"sessionAlreadyActive": "Denne session er allerede optaget eller livestreamet.",
- "showAdvancedOptions": "Advancerede indstillinger",
"signIn": "Log ind",
"signOut": "Log ud",
"surfaceError": "Vælg den aktuelle fane.",
"title": "Indspilning",
"unavailable": "Ups! {{serviceName}} er i øjeblikket ikke tilgængelig. Vi arbejder på at løse problemet. Prøv igen senere.",
- "unavailableTitle": "Optagelse utilgængelig",
- "uploadToCloud": "Upload til skyen"
+ "unavailableTitle": "Optagelse utilgængelig"
},
"screenshareDisplayName": "{{name}} 's skærm",
"sectionList": {
diff --git a/lang/main-de.json b/lang/main-de.json
index 1c515384d2..3400a8b977 100644
--- a/lang/main-de.json
+++ b/lang/main-de.json
@@ -1202,19 +1202,16 @@
"recordAudioAndVideo": "Kamera und Ton aufzeichnen",
"recordTranscription": "Transkription aufzeichnen",
"saveLocalRecording": "Aufzeichnung lokal abspeichern",
- "serviceDescription": "Ihre Aufzeichnung wird vom Aufzeichnungsdienst gespeichert",
"serviceDescriptionCloud": "Cloud-Aufzeichnung",
"serviceDescriptionCloudInfo": "Aufzeichnungen werden 24 Stunden nach Aufzeichnungsende automatisch gelöscht.",
"serviceName": "Aufnahmedienst",
"sessionAlreadyActive": "Diese Konferenz wird bereits aufgezeichnet.",
- "showAdvancedOptions": "Weitere Optionen",
"signIn": "Anmelden",
"signOut": "Abmelden",
"surfaceError": "Bitte wählen Sie das aktuelle Tab aus.",
"title": "Aufnahme",
"unavailable": "Oh! Der {{serviceName}} ist aktuell nicht verfügbar. Wir arbeiten an der Behebung des Problems. Bitte versuchen Sie es später noch einmal.",
- "unavailableTitle": "Aufnahme nicht verfügbar",
- "uploadToCloud": "In die Cloud hochladen"
+ "unavailableTitle": "Aufnahme nicht verfügbar"
},
"screenshareDisplayName": "{{name}}s Bildschirmfreigabe",
"sectionList": {
diff --git a/lang/main-dsb.json b/lang/main-dsb.json
index 7f1e8d0b67..9728b7b656 100644
--- a/lang/main-dsb.json
+++ b/lang/main-dsb.json
@@ -914,7 +914,6 @@
"onlyRecordSelf": "jano wideo a zuk ze swójeje kamery nagrawaś",
"pending": "Nagrawanje zmakanja se pśigótujo…",
"saveLocalRecording": "nagraty material lokalnje zachowaś",
- "serviceDescription": "Waš nagraty material se zachowajo wót nagrawajuceje słužby",
"serviceDescriptionCloud": "nagrawanje do mrokawy (cloud)",
"serviceDescriptionCloudInfo": "Nagraty material wulašujo se awtomatiski za 24 štundow pó dokóńcowanju nagrawanja.",
"serviceName": "nagrawajuca słužba",
@@ -924,8 +923,7 @@
"surfaceError": "Wuzwólśo aktuelnu kórtu (tab).",
"title": "",
"unavailable": "Ojej! {{serviceName}} njestoj aktuelnje k dispoziciji. My źěłamy na pórěźenju problema. Wopytajśo pózdźej hyšći raz.",
- "unavailableTitle": "Nagrawanje njestoj k dispoziciji",
- "uploadToCloud": "do mrokawy (cloud) kopěrowaś"
+ "unavailableTitle": "Nagrawanje njestoj k dispoziciji"
},
"screenshareDisplayName": "spśistupnjony monitor wót {{name}}",
"sectionList": {
diff --git a/lang/main-el.json b/lang/main-el.json
index c048088e31..e83f5487b3 100644
--- a/lang/main-el.json
+++ b/lang/main-el.json
@@ -928,7 +928,6 @@
"onlyRecordSelf": "Καταγραφή μόνο των δικών μου ροών ήχου και βίντεο",
"pending": "Προετοιμασία για την καταγραφή της σύσκεψης…",
"saveLocalRecording": "Αποθήκευση καταγραφής τοπικά (Beta)",
- "serviceDescription": "Η καταγραφή σας θα αποθηκευτεί από την υπηρεσία καταγραφής",
"serviceDescriptionCloud": "Καταγραφή στο σύννεφο",
"serviceDescriptionCloudInfo": "Οι καταγεγραμμένες συσκέψεις σβήνονται αυτόματα 24 ώρες μετά.",
"serviceName": "Υπηρεσία καταγραφής",
@@ -938,8 +937,7 @@
"surfaceError": "Παρακαλώ επιλέξτε τη τρέχουσα σελίδα.",
"title": "Γίνεται Καταγραφή",
"unavailable": "Ωχ! Το {{serviceName}} δεν είναι διαθέσιμο προς το παρόν. Δουλεύουμε για την επίλυση του ζητήματος. Παρακαλώ προσπαθήστε ξανά αργότερα.",
- "unavailableTitle": "Η καταγραφή δεν είναι διαθέσιμη",
- "uploadToCloud": "Ανέβασμα στο σύννεφο"
+ "unavailableTitle": "Η καταγραφή δεν είναι διαθέσιμη"
},
"screenshareDisplayName": "{{name}} - Οθόνη",
"sectionList": {
diff --git a/lang/main-eo.json b/lang/main-eo.json
index 55c6ab1277..90b0fee628 100644
--- a/lang/main-eo.json
+++ b/lang/main-eo.json
@@ -1010,19 +1010,16 @@
"recordAudioAndVideo": "Konservu kaj aŭdion kaj videon",
"recordTranscription": "Konservu transskribon",
"saveLocalRecording": "Konservu registraddosieron loke (Beta)",
- "serviceDescription": "Via registraĵo estos konservita de la registra servo",
"serviceDescriptionCloud": "Nubo registrado",
"serviceDescriptionCloudInfo": "Registritaj renkontiĝoj estas aŭtomate forigitaj 24h post sia tempo de registrado.",
"serviceName": "Registra servo",
"sessionAlreadyActive": "Ĉi tiu sesio jam estas registrita aŭ vivelsendita.",
- "showAdvancedOptions": "Detalaj agordoj",
"signIn": "Ensaluti",
"signOut": "Elsaluti",
"surfaceError": "Bonvolu elekti la nunan langeton.",
"title": "Registrado",
"unavailable": "Oj! La {{serviceName}} estas nun nedisponebla. Ni laboras por solvi la aferon. Bonvolu reprovi poste.",
- "unavailableTitle": "Registrado ne disponeblas",
- "uploadToCloud": "Alŝutu en la Nubo"
+ "unavailableTitle": "Registrado ne disponeblas"
},
"screenshareDisplayName": "Ekrano de {{name}}",
"sectionList": {
diff --git a/lang/main-es-US.json b/lang/main-es-US.json
index 52e8f9f26d..cd44984e5f 100644
--- a/lang/main-es-US.json
+++ b/lang/main-es-US.json
@@ -766,15 +766,13 @@
"on": "Grabando",
"onBy": "{{name}} comenzó la grabación",
"pending": "Preparando para grabar la reunión…",
- "serviceDescription": "El servicio de grabación guardará la grabación",
"serviceDescriptionCloud": "Grabación en la nube",
"serviceName": "Servicio de grabación",
"signIn": "Iniciar sesión",
"signOut": "Cerrar sesión",
"title": "Grabando",
"unavailable": "¡Uy! {{serviceName}} actualmente no está disponible. Estamos trabajando para resolver el problema. Vuelve a intentarlo más tarde.",
- "unavailableTitle": "Grabación no disponible",
- "uploadToCloud": "Subir a la nube"
+ "unavailableTitle": "Grabación no disponible"
},
"sectionList": {
"pullToRefresh": "Mueve el dedo para abajo para actualizar."
diff --git a/lang/main-es.json b/lang/main-es.json
index 6a1872d85b..e15c6560be 100644
--- a/lang/main-es.json
+++ b/lang/main-es.json
@@ -1212,19 +1212,16 @@
"recordAudioAndVideo": "Grabar audio y vídeo",
"recordTranscription": "Grabar transcripción",
"saveLocalRecording": "Guardar archivo de grabación localmente (Beta)",
- "serviceDescription": "El servicio de grabación guardará la grabación",
"serviceDescriptionCloud": "Grabación en la nube",
"serviceDescriptionCloudInfo": "Las reuniones grabadas se eliminan automáticamente 24 horas después de su grabación.",
"serviceName": "Servicio de grabación",
"sessionAlreadyActive": "Esta sesión ya está siendo grabada o transmitida en vivo.",
- "showAdvancedOptions": "Opciones avanzadas",
"signIn": "Iniciar sesión",
"signOut": "Cerrar sesión",
"surfaceError": "Por favor, seleccione la pestaña actual.",
"title": "Grabando",
"unavailable": "¡Uy! {{serviceName}} actualmente no está disponible. Estamos trabajando para resolver el problema. Vuelva a intentarlo más tarde.",
- "unavailableTitle": "Grabación no disponible",
- "uploadToCloud": "Subir a la nube"
+ "unavailableTitle": "Grabación no disponible"
},
"screenshareDisplayName": "Pantalla de {{name}}",
"sectionList": {
diff --git a/lang/main-et.json b/lang/main-et.json
index 45e7f9e938..0df0d7b7ed 100644
--- a/lang/main-et.json
+++ b/lang/main-et.json
@@ -480,7 +480,6 @@
"on": "Salvestatakse",
"onBy": "{{name}} alustas salvestamist",
"pending": "Kõne salvestamise ettevalmistus…",
- "serviceDescription": "Salvestus toimub teenuse kaudu",
"serviceName": "Salvestamise teenus",
"signIn": "Logi sisse",
"signOut": "Logi välja",
diff --git a/lang/main-eu.json b/lang/main-eu.json
index 990f780817..ac843eff1d 100644
--- a/lang/main-eu.json
+++ b/lang/main-eu.json
@@ -675,7 +675,6 @@
"on": "Grabaketa",
"onBy": "{{name}} erabiltzaileak grabazioa hasi du",
"pending": "Bilera grabatzeko prestatzen…",
- "serviceDescription": "Zure grabazioa grabazio-zerbitzuan gordeko da",
"serviceDescriptionCloud": "Lainoko grabazioa",
"serviceName": "Grabazio-zerbitzua",
"signIn": "Sartu",
diff --git a/lang/main-fa.json b/lang/main-fa.json
index ce3d2fe722..44ae9fc3ef 100644
--- a/lang/main-fa.json
+++ b/lang/main-fa.json
@@ -1144,19 +1144,16 @@
"recordAudioAndVideo": "ضبط صدا و تصویر",
"recordTranscription": "ضبط رونویسی",
"saveLocalRecording": "ذخیرهٔ پروندهٔ ضبط به صورت محلی (بتا)",
- "serviceDescription": "ضبط شما توسط خدمتِ ضبط ذخیره خواهد شد",
"serviceDescriptionCloud": "ضبط ابری",
"serviceDescriptionCloudInfo": "جلسات ضبط‌شده ۲۴ ساعت پس از زمان ضبط به‌طور خودکار پاک می‌شوند.",
"serviceName": "خدمتِ ضبط",
"sessionAlreadyActive": "این جلسه از قبل درحال ضبط یا پخش زنده است.",
- "showAdvancedOptions": "گزینه‌های پیشرفته",
"signIn": "ورود",
"signOut": "خروج",
"surfaceError": "لطفاً زبانه کنونی را انتخاب کنید.",
"title": "درحال ضبط",
"unavailable": "اوه! {{serviceName}} درحال حاضر در دسترس نیست. ما درحال کار برروی حل مشکل هستیم. لطفاً بعداً دوباره امتحان کنید.",
- "unavailableTitle": "ضبط دردسترس نیست",
- "uploadToCloud": "بارگذاری در فضای ابری"
+ "unavailableTitle": "ضبط دردسترس نیست"
},
"screenshareDisplayName": "صفحهٔ {{name}}",
"sectionList": {
diff --git a/lang/main-fi.json b/lang/main-fi.json
index b0dfdbe8cb..6880c331e9 100644
--- a/lang/main-fi.json
+++ b/lang/main-fi.json
@@ -1148,19 +1148,16 @@
"recordAudioAndVideo": "Nauhoita ääni ja video",
"recordTranscription": "Nauhoita transkriptio",
"saveLocalRecording": "Tallenna nauhoitustiedosto paikallisesti (Beta)",
- "serviceDescription": "Nauhoituspalvelu tallentaa nauhoituksen",
"serviceDescriptionCloud": "Pilvitallenne",
"serviceDescriptionCloudInfo": "Nauhoitetut kokoukset poistetaan automaattisesti 24 tunnin kuluttua nauhoitusajasta.",
"serviceName": "Nauhoituspalvelu",
"sessionAlreadyActive": "Tätä istuntoa nauhoitetaan tai suoratoistoon jo.",
- "showAdvancedOptions": "Lisäasetukset",
"signIn": "Kirjaudu sisään",
"signOut": "Kirjaudu ulos",
"surfaceError": "Valitse nykyinen välilehti.",
"title": "Nauhoitetaan",
"unavailable": "Hups! {{serviceName}} ei ole käytettävissä. Yritämme ratkaista ongelman. Yritä myöhemmin uudelleen.",
- "unavailableTitle": "Nauhoitus ei käytettävissä",
- "uploadToCloud": "Lataa pilveen"
+ "unavailableTitle": "Nauhoitus ei käytettävissä"
},
"screenshareDisplayName": "Käyttäjän {{name}} näyttö",
"sectionList": {
diff --git a/lang/main-fr-CA.json b/lang/main-fr-CA.json
index ef36e270c8..fc3ef7892a 100644
--- a/lang/main-fr-CA.json
+++ b/lang/main-fr-CA.json
@@ -1129,19 +1129,16 @@
"recordAudioAndVideo": "Enregistrer l'audio et la vidéo",
"recordTranscription": "Enregistrer la transcription",
"saveLocalRecording": "Sauvegarder l’enregistrement local (Beta)",
- "serviceDescription": "Votre enregistrement sera sauvegardé par le service d'enregistrement",
"serviceDescriptionCloud": "Enregistrement Cloud",
"serviceDescriptionCloudInfo": "Les réunions enregistrées sont automatiquement supprimées 24h après leur heure d'enregistrement.",
"serviceName": "Service d'enregistrement",
"sessionAlreadyActive": "Cette session est déjà en cours d'enregistrement ou de diffusion.",
- "showAdvancedOptions": "Afficher les options avancées",
"signIn": "Se connecter",
"signOut": "Se déconnecter",
"surfaceError": "Veuillez sélectionner l’onglet courant.",
"title": "Enregistrement",
"unavailable": "Oups! Le {{serviceName}} n'est pas disponible pour le moment. Nous nous efforçons de régler le problème. Veuillez réessayer plus tard.",
- "unavailableTitle": "Enregistrement non disponible",
- "uploadToCloud": "Envoyer vers le cloud"
+ "unavailableTitle": "Enregistrement non disponible"
},
"screenshareDisplayName": "Écran {{name}}",
"sectionList": {
diff --git a/lang/main-fr.json b/lang/main-fr.json
index 7e1873cdb0..566729a9f1 100644
--- a/lang/main-fr.json
+++ b/lang/main-fr.json
@@ -1149,19 +1149,16 @@
"recordAudioAndVideo": "Enregistrer l'audio et la vidéo",
"recordTranscription": "Enregistrer la transcription",
"saveLocalRecording": "Sauvegarder l’enregistrement local (Beta)",
- "serviceDescription": "Votre enregistrement sera enregistré par le service dédié",
"serviceDescriptionCloud": "Enregistrement Cloud",
"serviceDescriptionCloudInfo": "Les conférences enregistrées sont automatiquement supprimées 24h après leur heure d'enregistrement.",
"serviceName": "Service d'enregistrement",
"sessionAlreadyActive": "Cette session est déjà en cours d'enregistrement ou de diffusion.",
- "showAdvancedOptions": "Afficher les options avancées",
"signIn": "Se connecter",
"signOut": "Se déconnecter",
"surfaceError": "Veuillez sélectionner l’onglet courant.",
"title": "Enregistrement",
"unavailable": "Oups ! Le {{serviceName}} est actuellement indisponible. Nous tentons de résoudre le problème. Veuillez réessayer plus tard.",
- "unavailableTitle": "Enregistrement indisponible",
- "uploadToCloud": "Envoyer vers le cloud"
+ "unavailableTitle": "Enregistrement indisponible"
},
"screenshareDisplayName": "Écran {{name}}",
"sectionList": {
diff --git a/lang/main-gl.json b/lang/main-gl.json
index 499f61d86e..2350a71709 100644
--- a/lang/main-gl.json
+++ b/lang/main-gl.json
@@ -467,7 +467,6 @@
"on": "Gravando",
"onBy": "{{name}} comezou a gravación",
"pending": "Preparando a gravación da reunión…",
- "serviceDescription": "A súa gravación será gardada polo servizo de gravación",
"serviceName": "Servizo de gravación",
"signIn": "Conectarse",
"signOut": "Desconectarse",
diff --git a/lang/main-he.json b/lang/main-he.json
index 35434fcbf6..7b03e07322 100644
--- a/lang/main-he.json
+++ b/lang/main-he.json
@@ -487,7 +487,6 @@
"on": "מקליט",
"onBy": "{{name}} הפעיל את ההקלטה",
"pending": "מתכונן להקליט את הפגישה…",
- "serviceDescription": "ההקלטה שלך תישמר על ידי שירותי ההקלטה",
"serviceName": "שירותי הקלטה",
"signIn": "התחבר",
"signOut": "התנתק",
diff --git a/lang/main-hi.json b/lang/main-hi.json
index 556dcc7009..2fd8c83f45 100644
--- a/lang/main-hi.json
+++ b/lang/main-hi.json
@@ -1204,19 +1204,16 @@
"recordAudioAndVideo": "ऑडियो और वीडियो रिकॉर्ड करें",
"recordTranscription": "ट्रांसक्रिप्शन रिकॉर्ड करें",
"saveLocalRecording": "रिकॉर्डिंग फ़ाइल स्थानीय रूप से सहेजें (बीटा)",
- "serviceDescription": "आपकी रिकॉर्डिंग को रिकॉर्डिंग सेवा द्वारा सहेजा जाएगा",
"serviceDescriptionCloud": "क्लाउड रिकॉर्डिंग",
"serviceDescriptionCloudInfo": "रिकॉर्ड की गई बैठकें रिकॉर्डिंग के 24 घंटे बाद स्वचालित रूप से हटा दी जाती हैं।",
"serviceName": "रिकॉर्डिंग सेवा",
"sessionAlreadyActive": "यह सत्र पहले से रिकॉर्ड या लाइव स्ट्रीम हो रहा है।",
- "showAdvancedOptions": "उन्नत विकल्प",
"signIn": "साइन इन करें",
"signOut": "साइन आउट करें",
"surfaceError": "कृपया वर्तमान टैब चुनें।",
"title": "रिकॉर्डिंग",
"unavailable": "ओह! {{serviceName}} वर्तमान में अनुपलब्ध है। हम इस समस्या को हल करने पर काम कर रहे हैं। कृपया बाद में पुनः प्रयास करें।",
- "unavailableTitle": "रिकॉर्डिंग उपलब्ध नहीं है",
- "uploadToCloud": "क्लाउड पर अपलोड करें"
+ "unavailableTitle": "रिकॉर्डिंग उपलब्ध नहीं है"
},
"screenshareDisplayName": "{{name}} की स्क्रीन",
"sectionList": {
diff --git a/lang/main-hr.json b/lang/main-hr.json
index af9adb2dc7..b59a8907ed 100644
--- a/lang/main-hr.json
+++ b/lang/main-hr.json
@@ -903,7 +903,6 @@
"onlyRecordSelf": "Snimi samo moje audio i videoprijenose",
"pending": "Pripremanje snimanja sastanka …",
"saveLocalRecording": "Spremi datoteku snimanja lokalno (Beta)",
- "serviceDescription": "Tvoje snimanje će spremiti usluga za snimanje",
"serviceDescriptionCloud": "Snimanje u oblaku",
"serviceDescriptionCloudInfo": "Snimljeni sastanci se automatski brišu nakon 24 sata.",
"serviceName": "Usluga snimanja",
@@ -913,8 +912,7 @@
"surfaceError": "Odaberi trenutačnu karticu.",
"title": "Snimanje",
"unavailable": "Ups! Usluga {{serviceName}} trenutačno nije dostupna. Radimo na rješavanju problema. Pokušaj kasnije ponovo.",
- "unavailableTitle": "Snimanje nije dostupno",
- "uploadToCloud": "Prenesi u oblak"
+ "unavailableTitle": "Snimanje nije dostupno"
},
"screenshareDisplayName": "Ekran od {{name}}",
"sectionList": {
diff --git a/lang/main-hsb.json b/lang/main-hsb.json
index b27f80827c..ece40213aa 100644
--- a/lang/main-hsb.json
+++ b/lang/main-hsb.json
@@ -878,7 +878,6 @@
"onBy": "{{name}} startuje nahrawanje",
"pending": "nahrawanje konferency so přihotuje…",
"saveLocalRecording": "nahrawanje lokalnje składować",
- "serviceDescription": "Waše nahrawanje so wot nahrawanskeho serwisa składuje.",
"serviceDescriptionCloud": "nahrawanje na cloud",
"serviceDescriptionCloudInfo": "Nahrwanja so 24 hodźin po nahrawanju awtomatisce wotstronja.",
"serviceName": "nahrawanski serwis",
@@ -888,8 +887,7 @@
"surfaceError": "prošu aktualny tab wužiwać",
"title": "nahrawanje",
"unavailable": "Ow! {{serviceName}} tuchwilu wužiwajomny njeje. Dźěłamy na rozrisanju problema. Prošu pozdźišo znowa spytać .",
- "unavailableTitle": "nahrawanje njeje wužiwajomne",
- "uploadToCloud": "do cloud přenošować"
+ "unavailableTitle": "nahrawanje njeje wužiwajomne"
},
"screenshareDisplayName": "wobrazowka wot {{name}}",
"sectionList": {
diff --git a/lang/main-hu.json b/lang/main-hu.json
index adbd5fd1d8..d5e800517d 100644
--- a/lang/main-hu.json
+++ b/lang/main-hu.json
@@ -690,7 +690,6 @@
"onlyRecordSelf": "Csak az én hang- és videófolyamomat rögzítse",
"pending": "Értekezlet rögzítésének előkészítése…",
"saveLocalRecording": "Felvétel mentése helyileg (béta)",
- "serviceDescription": "A felvételt a rögzítési szolgáltatás veszi fel",
"serviceName": "Felvétel szolgáltatás",
"signIn": "Belépés",
"signOut": "Kilépés",
diff --git a/lang/main-hy.json b/lang/main-hy.json
index cac907270c..3f56ba14ce 100644
--- a/lang/main-hy.json
+++ b/lang/main-hy.json
@@ -436,7 +436,6 @@
"off": "Ձայնագրությունը կանգնացված է",
"on": "Գրանցում",
"pending": "",
- "serviceDescription": "",
"serviceName": "",
"signIn": "",
"signOut": "",
diff --git a/lang/main-id.json b/lang/main-id.json
index 60835fd0e5..54b0c911f9 100644
--- a/lang/main-id.json
+++ b/lang/main-id.json
@@ -1030,19 +1030,16 @@
"recordAudioAndVideo": "Rekam audio dan video",
"recordTranscription": "Rekam transkripsi",
"saveLocalRecording": "Simpan file rekaman secara lokal (Beta)",
- "serviceDescription": "Rekaman Anda akan disimpan oleh layanan rekaman",
"serviceDescriptionCloud": "Rekaman cloud",
"serviceDescriptionCloudInfo": "Pertemuan yang direkam secara otomatis dihapus 24 jam setelah waktu rekaman mereka.",
"serviceName": "Layanan rekaman",
"sessionAlreadyActive": "Sesi ini sudah direkam atau disiarkan langsung.",
- "showAdvancedOptions": "Opsi Lanjutan",
"signIn": "Masuk",
"signOut": "Keluar",
"surfaceError": "Harap pilih tab saat ini.",
"title": "Rekaman",
"unavailable": "Ups! {{serviceName}} saat ini tidak tersedia. Kami sedang berupaya menyelesaikan masalah ini. Harap coba lagi nanti.",
- "unavailableTitle": "Rekaman tidak tersedia",
- "uploadToCloud": "Unggah ke cloud"
+ "unavailableTitle": "Rekaman tidak tersedia"
},
"screenshareDisplayName": "Layar {{name}}",
"sectionList": {
diff --git a/lang/main-is.json b/lang/main-is.json
index 15a412eafa..08685d06ac 100644
--- a/lang/main-is.json
+++ b/lang/main-is.json
@@ -1011,19 +1011,16 @@
"recordAudioAndVideo": "Taka upp hljóð og myndmerki",
"recordTranscription": "Taka upp textaumritun",
"saveLocalRecording": "Vista upptökuskrá á eigin tölvu (Beta-prófunarútgáfa)",
- "serviceDescription": "Upptakan þín verður vistuð af upptökuþjónustunni",
"serviceDescriptionCloud": "Upptaka á tölvuský",
"serviceDescriptionCloudInfo": "Upptökurm af fundum er eytt sjálfkrafa 24klst eftir upptöku þeirra.",
"serviceName": "Upptökuþjónusta",
"sessionAlreadyActive": "Það er þegar verið að taka upp eða streyma beint þessari setu.",
- "showAdvancedOptions": "Ítarlegir valkostir",
"signIn": "Skrá inn",
"signOut": "Skrá út",
"surfaceError": "Veldu núverandi flipa.",
"title": "Upptaka",
"unavailable": "Úbbs! {{serviceName}} er upptekið í augnablikinu. Við erum að vinna í þessu vandamáli. Reyndu aftur síðar.",
- "unavailableTitle": "Upptaka er ekki tiltæk",
- "uploadToCloud": "Senda inn á tölvuskýið"
+ "unavailableTitle": "Upptaka er ekki tiltæk"
},
"screenshareDisplayName": "Skjár hjá {{name}}",
"sectionList": {
diff --git a/lang/main-it.json b/lang/main-it.json
index 956fac1ef1..87b40ebf40 100644
--- a/lang/main-it.json
+++ b/lang/main-it.json
@@ -1159,19 +1159,16 @@
"recordAudioAndVideo": "Registra audio e video",
"recordTranscription": "Registra trascrizione",
"saveLocalRecording": "Salva localmente il file della registrazione (Beta)",
- "serviceDescription": "La tua registrazione verrà salvata dal servizio di registrazione",
"serviceDescriptionCloud": "Registrazione in rete",
"serviceDescriptionCloudInfo": "Le riunioni registrate vengono automaticamente cancellate 24 ore dopo la registrazione.",
"serviceName": "Servizio di registrazione",
"sessionAlreadyActive": "È già in corso una registrazione o una diretta per questa riunione.",
- "showAdvancedOptions": "Opzioni avanzate",
"signIn": "Accedi",
"signOut": "Disconnetti",
"surfaceError": "Si prega di selezionare la scheda corrente.",
"title": "Registrazione",
"unavailable": "Ops! Il {{serviceName}} non è al momento disponibile. Stiamo lavorando per risolvere il problema. Si prega di riprovare più tardi.",
- "unavailableTitle": "Registrazione non disponibile",
- "uploadToCloud": "Carica nel cloud"
+ "unavailableTitle": "Registrazione non disponibile"
},
"screenshareDisplayName": "Schermo di {{name}}",
"sectionList": {
diff --git a/lang/main-ja.json b/lang/main-ja.json
index 8af913456e..92e006d05c 100644
--- a/lang/main-ja.json
+++ b/lang/main-ja.json
@@ -832,7 +832,6 @@
"onlyRecordSelf": "自身の音声・映像のみを録画する",
"pending": "ミーティングの録画準備中…",
"saveLocalRecording": "ローカルに録画を保存 (Beta)",
- "serviceDescription": "ビデオは録画サービスで録画されます",
"serviceDescriptionCloud": "クラウドレコーディング",
"serviceName": "録画サービス",
"sessionAlreadyActive": "このセッションはすでに録画またはライブ配信されています。",
@@ -840,8 +839,7 @@
"signOut": "サインアウト",
"title": "録画",
"unavailable": "おっと! {{serviceName}} は現在使用できません。私たちはこの問題の解決に取り組んでいます。後でもう一度お試しください。",
- "unavailableTitle": "録画できません",
- "uploadToCloud": "クラウドへアップロード"
+ "unavailableTitle": "録画できません"
},
"sectionList": {
"pullToRefresh": "引っ張って更新する"
diff --git a/lang/main-kab.json b/lang/main-kab.json
index bb06324780..97ee25d0cb 100644
--- a/lang/main-kab.json
+++ b/lang/main-kab.json
@@ -767,15 +767,13 @@
"on": "Asekles",
"onBy": "{{name}} yebda asekles",
"pending": "Aheyyi n usekles n temlilit…",
- "serviceDescription": "Asekles-inek·inem ad yettwasekles s umeẓlu n usekles",
"serviceDescriptionCloud": "Asekles deg usigna",
"serviceName": "Ameẓlu n usekles",
"signIn": "Qqen",
"signOut": "Ffeɣ",
"title": "Asekles",
"unavailable": "Suref-aɣ! {{serviceName}} akka tura ulac-it. Aql-aɣ nxeddem ad nefru ugur. Ma ulac aɣilif ɛreḍ tikkelt-nniḍen ticki.",
- "unavailableTitle": "Ulac asekles",
- "uploadToCloud": "Sali ɣer usigna"
+ "unavailableTitle": "Ulac asekles"
},
"sectionList": {
"pullToRefresh": "Jbed-d i usnirem"
diff --git a/lang/main-kk.json b/lang/main-kk.json
index a7adc9cd14..822a664a35 100644
--- a/lang/main-kk.json
+++ b/lang/main-kk.json
@@ -1144,19 +1144,16 @@
"recordAudioAndVideo": "Аудио және бейнені жазу",
"recordTranscription": "Транскрипцияны жазу",
"saveLocalRecording": "Жазу файлын жергілікті сақтау (Бета)",
- "serviceDescription": "Жазбаңызды жазу қызметі сақтайды",
"serviceDescriptionCloud": "Бұлттық жазу",
"serviceDescriptionCloudInfo": "Жазылған жиналыстар жазылған уақытынан кейін 24 сағаттан соң автоматты түрде тазаланады.",
"serviceName": "Жазу қызметі",
"sessionAlreadyActive": "Бұл сессия қазірдің өзінде жазылуда немесе тікелей эфирде көрсетілуде.",
- "showAdvancedOptions": "Қосымша опциялар",
"signIn": "Кіру",
"signOut": "Шығу",
"surfaceError": "Ағымдағы қойындыны таңдаңыз.",
"title": "Жазу",
"unavailable": "Қап! {{serviceName}} қазіргі уақытта қолжетімсіз. Біз мәселені шешу үстіндеміз. Кейінірек қайталап көріңіз.",
- "unavailableTitle": "Жазу қолжетімсіз",
- "uploadToCloud": "Бұлтқа жүктеу"
+ "unavailableTitle": "Жазу қолжетімсіз"
},
"screenshareDisplayName": "{{name}} экраны",
"sectionList": {
diff --git a/lang/main-ko.json b/lang/main-ko.json
index b4c93edb67..e0864ea013 100644
--- a/lang/main-ko.json
+++ b/lang/main-ko.json
@@ -1051,19 +1051,16 @@
"recordAudioAndVideo": "오디오와 비디오 녹화",
"recordTranscription": "자막 녹화",
"saveLocalRecording": "녹화 파일을 로컬에 저장 (베타)",
- "serviceDescription": "녹화는 녹화 서비스에 의해 저장됩니다.",
"serviceDescriptionCloud": "클라우드 녹화",
"serviceDescriptionCloudInfo": "녹화된 회의는 녹화 후 24시간 후에 자동으로 삭제됩니다.",
"serviceName": "녹화 서비스",
"sessionAlreadyActive": "이 세션은 이미 녹화되거나 라이브 스트림 중입니다.",
- "showAdvancedOptions": "고급 옵션",
"signIn": "로그인",
"signOut": "로그아웃",
"surfaceError": "현재 탭을 선택해 주세요.",
"title": "녹화",
"unavailable": "죄송합니다. {{serviceName}}은 현재 사용할 수 없습니다. 저희는 문제를 해결하기 위해 노력하고 있습니다. 나중에 다시 시도 해주십시오.",
- "unavailableTitle": "녹화를 사용할 수 없습니다",
- "uploadToCloud": "클라우드에 업로드"
+ "unavailableTitle": "녹화를 사용할 수 없습니다"
},
"screenshareDisplayName": "{{name}}의 화면",
"sectionList": {
diff --git a/lang/main-lt.json b/lang/main-lt.json
index 73f39e46b7..c665b17737 100644
--- a/lang/main-lt.json
+++ b/lang/main-lt.json
@@ -481,7 +481,6 @@
"on": "Įrašinėjama",
"onBy": "{{name}} pradėjo įrašą",
"pending": "Ruošiama įrašinėti susitikimą…",
- "serviceDescription": "Jūsų įrašą išssaugos įrašymo tarnyba",
"serviceName": "Įrašymo tarnyba",
"signIn": "Prisijungti",
"signOut": "Atsijungti",
diff --git a/lang/main-lv.json b/lang/main-lv.json
index 9ebd4df59e..476c689a9d 100644
--- a/lang/main-lv.json
+++ b/lang/main-lv.json
@@ -1201,19 +1201,16 @@
"recordAudioAndVideo": "Ierakstīt audio un video",
"recordTranscription": "Ierakstīt atšifrējumu",
"saveLocalRecording": "Ieraksta faila saglabāšana lokāli (beta)",
- "serviceDescription": "Jūsu ierakstu saglabās attiecīgais pakalpojums",
"serviceDescriptionCloud": "Ierakstīšana mākonī",
"serviceDescriptionCloudInfo": "Ierakstītās sapulces tiek automātiski dzēstas 24 stundas pēc to ierakstīšanas laika.",
"serviceName": "Ieraksta pakalpojums",
"sessionAlreadyActive": "Šī sesija jau tiek ierakstīta vai straumēta tiešraidē.",
- "showAdvancedOptions": "Papildus iespējas",
"signIn": "Pierakstīties",
"signOut": "Izrakstīties",
"surfaceError": "Lūdzu, izvēlieties pašreizējo cilni.",
"title": "Ieraksts",
"unavailable": "Hmm! {{serviceName}} pašlaik nav pieejams. Mēs strādājam pie problēmas risināšanas. Lūdzu, pamēģiniet vēlreiz vēlāk.",
- "unavailableTitle": "Ieraksts nav iespējams",
- "uploadToCloud": "Augšuplādēt mākonī"
+ "unavailableTitle": "Ieraksts nav iespējams"
},
"screenshareDisplayName": "{{name}} ekrāns",
"sectionList": {
diff --git a/lang/main-ml.json b/lang/main-ml.json
index 5b6d8d12af..c41ef3b5c2 100644
--- a/lang/main-ml.json
+++ b/lang/main-ml.json
@@ -618,7 +618,6 @@
"on": "റെക്കോർഡിംഗ്",
"onBy": "{{name}} റെക്കോർഡിംഗ് ആരംഭിച്ചു",
"pending": "മീറ്റിംഗ് റെക്കോർഡുചെയ്യാൻ തയ്യാറെടുക്കുന്നു…",
- "serviceDescription": "നിങ്ങളുടെ റെക്കോർഡിംഗ് റെക്കോർഡിംഗ് സേവനം സൂക്ഷിക്കും",
"serviceName": "റെക്കോർഡിംഗ് സേവനം ",
"signIn": "അകത്തുകയറുക",
"signOut": "പുറത്തിറങ്ങുക",
diff --git a/lang/main-mn.json b/lang/main-mn.json
index 60ac31b63a..6e47202339 100644
--- a/lang/main-mn.json
+++ b/lang/main-mn.json
@@ -1159,19 +1159,16 @@
"recordAudioAndVideo": "Дуу, видео бичих",
"recordTranscription": "Хуулбар бичих",
"saveLocalRecording": "Бичлэгийн файлаа өөрийн компьютерт хадгал (Beta)",
- "serviceDescription": "Таны бичлэгийг хадгална",
"serviceDescriptionCloud": "Клауд бичлэг",
"serviceDescriptionCloudInfo": "Уулзалтын бичлэг хийсэн цагаас хойш 24 цагийн дараа автоматаар бичлэг устана.",
"serviceName": "Бичлэгийн үйлчилгээ",
"sessionAlreadyActive": "Энэ уулзалтын бичлэгийг хийсэн эсвэл шууд дамжуулсан.",
- "showAdvancedOptions": "Нарийвчилсан сонголт",
"signIn": "Нэвтрэх",
"signOut": "Гарах",
"surfaceError": "Энэ табыг сонгоно уу.",
"title": "Бичлэг хийх",
"unavailable": "{{serviceName}} одоогоор ажиллахгүй байна. Бид асуудлыг шийдвэрлэхээр ажиллаж байна. Дараа дахин оролдож үзнэ үү.",
- "unavailableTitle": "Бичлэг хийх боломжгүй",
- "uploadToCloud": "Клауд руу файл илгээх"
+ "unavailableTitle": "Бичлэг хийх боломжгүй"
},
"screenshareDisplayName": "{{name}}-н дэлгэц",
"sectionList": {
diff --git a/lang/main-mr.json b/lang/main-mr.json
index 3dc8ea2fa0..daecd322d0 100644
--- a/lang/main-mr.json
+++ b/lang/main-mr.json
@@ -520,7 +520,6 @@
"on": "Recording",
"onBy": "{{name}} रेकॉर्डिंग सुरू केले",
"pending": "मीटिंग रेकॉर्ड करण्याची तयारी करत आहे…",
- "serviceDescription": "आपले रेकॉर्डिंग रेकॉर्डिंग सेवेद्वारे जतन केले जाईल",
"serviceName": "रेकॉर्डिंग सेवा",
"signIn": "साइन इन करा",
"signOut": "साइन आउट करा",
diff --git a/lang/main-nb.json b/lang/main-nb.json
index 80f77f3159..52027362ac 100644
--- a/lang/main-nb.json
+++ b/lang/main-nb.json
@@ -1052,19 +1052,16 @@
"recordAudioAndVideo": "Ta opp lyd og video",
"recordTranscription": "Ta opp transkripsjon",
"saveLocalRecording": "Lagre opptaksfilen lokalt (Beta)",
- "serviceDescription": "Opptaket ditt vil bli lagret av opptakstjenesten",
"serviceDescriptionCloud": "Skylagringsopptak",
"serviceDescriptionCloudInfo": "Opptak av møter slettes automatisk 24 timer etter opptakstidspunktet.",
"serviceName": "Opptakstjeneste",
"sessionAlreadyActive": "Denne økten blir allerede tatt opp eller direktesendt.",
- "showAdvancedOptions": "Avanserte alternativer",
"signIn": "Logg inn",
"signOut": "Logg ut",
"surfaceError": "Vennligst velg den gjeldende fanen.",
"title": "Opptak",
"unavailable": "Oops! {{serviceName}} er for øyeblikket utilgjengelig. Vi jobber med å løse problemet. Vennligst prøv igjen senere.",
- "unavailableTitle": "Opptak utilgjengelig",
- "uploadToCloud": "Last opp til skyen"
+ "unavailableTitle": "Opptak utilgjengelig"
},
"screenshareDisplayName": "{{name}}s skjerm",
"sectionList": {
diff --git a/lang/main-nl.json b/lang/main-nl.json
index 462ee8a1d7..bda91b399b 100644
--- a/lang/main-nl.json
+++ b/lang/main-nl.json
@@ -1204,19 +1204,16 @@
"recordAudioAndVideo": "Audio en video opnemen",
"recordTranscription": "Transcriptie opnemen",
"saveLocalRecording": "Opnamebestand lokaal opslaan (Bèta)",
- "serviceDescription": "Uw opname wordt opgeslagen door de opnameservice",
"serviceDescriptionCloud": "Cloud-opname",
"serviceDescriptionCloudInfo": "Opgenomen vergaderingen worden automatisch 24 uur na hun opnametijd gewist.",
"serviceName": "Opnameservice",
"sessionAlreadyActive": "Deze sessie wordt al opgenomen of live gestreamd.",
- "showAdvancedOptions": "Geavanceerde opties",
"signIn": "Aanmelden",
"signOut": "Afmelden",
"surfaceError": "Selecteer het huidige tabblad.",
"title": "Opnemen",
"unavailable": "Oeps! {{serviceName}} is momenteel niet beschikbaar. Er wordt aan een oplossing gewerkt. Probeer het later opnieuw.",
- "unavailableTitle": "Opname niet beschikbaar",
- "uploadToCloud": "Uploaden naar de cloud"
+ "unavailableTitle": "Opname niet beschikbaar"
},
"screenshareDisplayName": "Scherm van {{name}}",
"sectionList": {
diff --git a/lang/main-no.json b/lang/main-no.json
index 80f77f3159..52027362ac 100644
--- a/lang/main-no.json
+++ b/lang/main-no.json
@@ -1052,19 +1052,16 @@
"recordAudioAndVideo": "Ta opp lyd og video",
"recordTranscription": "Ta opp transkripsjon",
"saveLocalRecording": "Lagre opptaksfilen lokalt (Beta)",
- "serviceDescription": "Opptaket ditt vil bli lagret av opptakstjenesten",
"serviceDescriptionCloud": "Skylagringsopptak",
"serviceDescriptionCloudInfo": "Opptak av møter slettes automatisk 24 timer etter opptakstidspunktet.",
"serviceName": "Opptakstjeneste",
"sessionAlreadyActive": "Denne økten blir allerede tatt opp eller direktesendt.",
- "showAdvancedOptions": "Avanserte alternativer",
"signIn": "Logg inn",
"signOut": "Logg ut",
"surfaceError": "Vennligst velg den gjeldende fanen.",
"title": "Opptak",
"unavailable": "Oops! {{serviceName}} er for øyeblikket utilgjengelig. Vi jobber med å løse problemet. Vennligst prøv igjen senere.",
- "unavailableTitle": "Opptak utilgjengelig",
- "uploadToCloud": "Last opp til skyen"
+ "unavailableTitle": "Opptak utilgjengelig"
},
"screenshareDisplayName": "{{name}}s skjerm",
"sectionList": {
diff --git a/lang/main-oc.json b/lang/main-oc.json
index 50b856686c..4192bc501f 100644
--- a/lang/main-oc.json
+++ b/lang/main-oc.json
@@ -1052,19 +1052,16 @@
"recordAudioAndVideo": "Enregistrar l'àudio e la vidèo",
"recordTranscription": "Enregistrar la transcripcion",
"saveLocalRecording": "Salvagardar l'enregistrament local (Beta)",
- "serviceDescription": "Vòstre enregistrament serà salvagardat pel servici dedicat",
"serviceDescriptionCloud": "Enregistrament distant",
"serviceDescriptionCloudInfo": "Las reünions enregistradas se suprimisson automaticament 24h après l'enregistrament.",
"serviceName": "Servici d’enregistrament",
"sessionAlreadyActive": "Aquesta session es ja en cors d’enregistrament o en difusion en dirèct.",
- "showAdvancedOptions": "Opcions avançadas",
"signIn": "Connexion",
"signOut": "Se desconnectar",
"surfaceError": "Seleccionatz l'onglet actual.",
"title": "Enregistrament",
"unavailable": "Ops ! Lo {{serviceName}} es pas disponible pel moment. Sèm a reglar aqueste problèma. Mercés de tornar ensajar mai tard.",
- "unavailableTitle": "Enregistrament indisponible",
- "uploadToCloud": "Enviar al cloud"
+ "unavailableTitle": "Enregistrament indisponible"
},
"screenshareDisplayName": "Ecran de {{name}}",
"sectionList": {
diff --git a/lang/main-pl.json b/lang/main-pl.json
index f46b9e959f..0fe4a06664 100644
--- a/lang/main-pl.json
+++ b/lang/main-pl.json
@@ -945,7 +945,6 @@
"onlyRecordSelf": "Nagrywaj tylko moje strumienie audio i wideo",
"pending": "Przygotowanie do nagrania spotkania…",
"saveLocalRecording": "Zapisz plik nagrania lokalnie (Beta)",
- "serviceDescription": "Twoje nagranie zostanie zapisane przez usługę nagrywania",
"serviceDescriptionCloud": "Nagrywanie w chmurze",
"serviceDescriptionCloudInfo": "Nagrane spotkania są automatycznie usuwane 24 godziny po ich nagraniu.",
"serviceName": "Usługa nagrywania",
@@ -955,8 +954,7 @@
"surfaceError": "Proszę wybrać aktualną zakładkę.",
"title": "Nagrywanie",
"unavailable": "Ups! {{serviceName}} w tej chwili niedostępny. Próbujemy rozwiązać ten problem. Spróbuj ponownie później.",
- "unavailableTitle": "Nagrywanie niedostępne",
- "uploadToCloud": "Prześlij do chmury"
+ "unavailableTitle": "Nagrywanie niedostępne"
},
"screenshareDisplayName": "Ekran użytkownika {{name}}",
"sectionList": {
diff --git a/lang/main-pt-BR.json b/lang/main-pt-BR.json
index 5b2fbb8041..fb85a45b2f 100644
--- a/lang/main-pt-BR.json
+++ b/lang/main-pt-BR.json
@@ -1008,7 +1008,6 @@
"onlyRecordSelf": "Gravar apenas o meu fluxo de áudio e vídeo",
"pending": "Preparando para gravar a reunião…",
"saveLocalRecording": "Salvar o arquivo de gravação localmente (Beta)",
- "serviceDescription": "Sua gravação será salva pelo serviço de gravação",
"serviceDescriptionCloud": "Gravação na nuvem",
"serviceDescriptionCloudInfo": "Reuniões gravadas são removidas automaticamente 24h após a hora da gravação.",
"serviceName": "Serviço de gravação",
@@ -1018,8 +1017,7 @@
"surfaceError": "Por favor selecione a aba atual.",
"title": "Gravando",
"unavailable": "Oops! O {{serviceName}} está indisponível. Estamos trabalhando para resolver o problema. Por favor, tente mais tarde.",
- "unavailableTitle": "Gravação indisponível",
- "uploadToCloud": "Enviar para a nuvem"
+ "unavailableTitle": "Gravação indisponível"
},
"screenshareDisplayName": "Tela: {{name}}",
"sectionList": {
diff --git a/lang/main-pt.json b/lang/main-pt.json
index 3fac626787..1915870bcd 100644
--- a/lang/main-pt.json
+++ b/lang/main-pt.json
@@ -1202,19 +1202,16 @@
"recordAudioAndVideo": "Gravar áudio e vídeo",
"recordTranscription": "Gravar transcrições",
"saveLocalRecording": "Guardar ficheiro de gravação localmente",
- "serviceDescription": "Sua gravação será salva pelo serviço de gravação",
"serviceDescriptionCloud": "Gravação na nuvem",
"serviceDescriptionCloudInfo": "As reuniões gravadas são automaticamente apagadas 24h após a hora de gravação.",
"serviceName": "Serviço de gravação",
"sessionAlreadyActive": "Esta sessão já está a ser gravada ou transmitida em direto.",
- "showAdvancedOptions": "Opções avançadas",
"signIn": "Entrar",
"signOut": "Sair",
"surfaceError": "Por favor, seleccione o separador actual.",
"title": "Gravação",
"unavailable": "Oops! O {{serviceName}} está indisponível. Estamos trabalhando para resolver o problema. Por favor, tente mais tarde.",
- "unavailableTitle": "Gravação indisponível",
- "uploadToCloud": "Enviar para a nuvem"
+ "unavailableTitle": "Gravação indisponível"
},
"screenshareDisplayName": "Ecrã do/a {{name}}",
"sectionList": {
diff --git a/lang/main-ro.json b/lang/main-ro.json
index 5440bb8ee6..61cbd54700 100644
--- a/lang/main-ro.json
+++ b/lang/main-ro.json
@@ -482,7 +482,6 @@
"on": "Înregistrare",
"onBy": "{{name}} a pornit înregistrarea",
"pending": "Se pregătește înregistrarea apelului video…",
- "serviceDescription": "Înregistrarea dumneavoastră va fi salvată de serviciul înregistrare",
"serviceName": "Serviciu înregistrare",
"signIn": "Conectare",
"signOut": "Deconectare",
diff --git a/lang/main-ru.json b/lang/main-ru.json
index 3bd35599fa..631cadbcf5 100644
--- a/lang/main-ru.json
+++ b/lang/main-ru.json
@@ -1078,19 +1078,16 @@
"recordAudioAndVideo": "Запись аудио и видео",
"recordTranscription": "Запись транскрипции",
"saveLocalRecording": "Сохранить файл записи локально (Beta)",
- "serviceDescription": "Ваша запись будет сохранена соответствующей службой",
"serviceDescriptionCloud": "Облачная запись",
"serviceDescriptionCloudInfo": "Сохранённые записи автоматически удаляются спуся 24 часа со старта.",
"serviceName": "Служба записи",
"sessionAlreadyActive": "Этот сеанс уже записывается или транслируется в прямом эфире.",
- "showAdvancedOptions": "Расширенные настройки",
"signIn": "Вход",
"signOut": "Выход",
"surfaceError": "Пожалуйста, выберите текущую вкладку.",
"title": "Запись",
"unavailable": "Служба {{serviceName}} сейчас недоступна. Мы работаем над исправлением этой ошибки. Пожалуйста, попробуйте позже.",
- "unavailableTitle": "Запись невозможна",
- "uploadToCloud": "Загрузить в облако"
+ "unavailableTitle": "Запись невозможна"
},
"screenshareDisplayName": "Экран {{name}}",
"sectionList": {
diff --git a/lang/main-sc.json b/lang/main-sc.json
index 50bf285b63..811ee4900d 100644
--- a/lang/main-sc.json
+++ b/lang/main-sc.json
@@ -1126,19 +1126,16 @@
"recordAudioAndVideo": "Registra s'àudio e su vìdeu",
"recordTranscription": "Registra sa trascritzione",
"saveLocalRecording": "Sarva s'archìviu de registratzione in locale (Beta)",
- "serviceDescription": "Sa registratzione at a èssere sarvada dae su servìtziu de registratzione",
"serviceDescriptionCloud": "Registratzione in sa nue",
"serviceDescriptionCloudInfo": "Is riuniones registradas ant a èssere cantzelladas in automàticu a pustis de 24 oras de sa registratzione.",
"serviceName": "Servìtziu de registratzione",
"sessionAlreadyActive": "S'est giai registrende o trasmitende in direta sa sessione.",
- "showAdvancedOptions": "Optziones avantzadas",
"signIn": "Identìfica·ti",
"signOut": "Essi",
"surfaceError": "Seletziona s'ischeda atuale.",
"title": "Registrende",
"unavailable": "Ohia {{serviceName}} no est a disponimentu. Semus traballende pro acontzare su problema. Torra a proare a pustis.",
- "unavailableTitle": "Sa registratzione no est a disponimentu",
- "uploadToCloud": "Càrriga in sa nue"
+ "unavailableTitle": "Sa registratzione no est a disponimentu"
},
"screenshareDisplayName": "Ischermu de {{name}}",
"sectionList": {
diff --git a/lang/main-sk.json b/lang/main-sk.json
index 4405197ece..1a2dc08d59 100644
--- a/lang/main-sk.json
+++ b/lang/main-sk.json
@@ -595,7 +595,6 @@
"on": "Nahrávanie",
"onBy": "{{name}} začal nahrávanie",
"pending": "Pripravuje sa nahrávanie stretnutia…",
- "serviceDescription": "Vaša nahrávka sa ukladá nahrávacou službou",
"serviceName": "Nahrávacia služba",
"signIn": "Prihlásiť",
"signOut": "Odhlásiť",
diff --git a/lang/main-sl.json b/lang/main-sl.json
index 7eeb60a917..bc41e3dad3 100644
--- a/lang/main-sl.json
+++ b/lang/main-sl.json
@@ -768,15 +768,13 @@
"on": "Snemanje",
"onBy": "{{name}} je začel snemanje",
"pending": "Priprava snemanja srečanja…",
- "serviceDescription": "Vaš posnetek bo shranila storitev snemanja",
"serviceDescriptionCloud": "Snemanje v oblak",
"serviceName": "Storitev snemanja",
"signIn": "Prijava",
"signOut": "Odjava",
"title": "Snemanje",
"unavailable": "Ups! {{serviceName}} trenutno ni na voljo. Delamo na tem, da težavo odpravimo. Prosimo, poskusite kasneje.",
- "unavailableTitle": "Snemanje ni mogoče",
- "uploadToCloud": "Naloži v oblak"
+ "unavailableTitle": "Snemanje ni mogoče"
},
"sectionList": {
"pullToRefresh": "Potegnite za osvežitev"
diff --git a/lang/main-sq.json b/lang/main-sq.json
index 5d1b1e01eb..0872431f62 100644
--- a/lang/main-sq.json
+++ b/lang/main-sq.json
@@ -1150,19 +1150,16 @@
"recordAudioAndVideo": "Regjistro audio dhe video",
"recordTranscription": "Regjistro transkriptimin",
"saveLocalRecording": "Ruajeni lokalisht kartelën e regjistrimit (Beta)",
- "serviceDescription": "Regjistrimi juaj do të ruhet nga shërbimi i regjistrimit",
"serviceDescriptionCloud": "Regjistrim në re",
"serviceDescriptionCloudInfo": "Takimet e regjistruara spastrohen automatikisht 24h pas kohës së regjistrimit të tyre.",
"serviceName": "Shërbim regjistrimi",
"sessionAlreadyActive": "Ky sesion po regjistrohet ose transmetohet drejtpërsëdrejti tashmë.",
- "showAdvancedOptions": "Mundësi të mëtejshme",
"signIn": "Hyni",
"signOut": "Dilni",
"surfaceError": "Ju lutemi, përdorni skedën e tanishme.",
"title": "Regjistrim",
"unavailable": "Hëm! {{serviceName}} s’është i passhëm aktualisht. Po punojmë për të zgjidhur problemin. Ju lutemi, riprovoni më vonë.",
- "unavailableTitle": "Regjistrim jo i passhëm",
- "uploadToCloud": "Ngarkojeni te reja"
+ "unavailableTitle": "Regjistrim jo i passhëm"
},
"screenshareDisplayName": "Skena e {{name}}",
"sectionList": {
diff --git a/lang/main-sr.json b/lang/main-sr.json
index b5c0e91635..e777bf0187 100644
--- a/lang/main-sr.json
+++ b/lang/main-sr.json
@@ -474,7 +474,6 @@
"off": "",
"on": "Снимањe",
"pending": "",
- "serviceDescription": "",
"serviceName": "",
"signIn": "",
"signOut": "Покрeнитe eмитовање уживо",
diff --git a/lang/main-sv.json b/lang/main-sv.json
index 105ed53ae9..fdb9c9ced9 100644
--- a/lang/main-sv.json
+++ b/lang/main-sv.json
@@ -1154,19 +1154,16 @@
"recordAudioAndVideo": "Spela in ljud och bild",
"recordTranscription": "Spela in transkribiering",
"saveLocalRecording": "Spara inspelningsfil lokalt (beta)",
- "serviceDescription": "Din inspelning kommer att sparas av inspelningstjänsten",
"serviceDescriptionCloud": "Molninspelning",
"serviceDescriptionCloudInfo": "Inspelade möten rensas automatiskt 24 timmar efter inspelningstiden.",
"serviceName": "Inspelningstjänst",
"sessionAlreadyActive": "Den här sessionen spelas redan in eller livestreamas.",
- "showAdvancedOptions": "Visa avancerade inställningar",
"signIn": "Logga in",
"signOut": "Logga ut",
"surfaceError": "Välj aktuell flik.",
"title": "Inspelning",
"unavailable": "{{serviceName}} är inte tillgänglig. Vi försöker åtgärda felet. Försök igen senare.",
- "unavailableTitle": "Inspelning kan inte göras",
- "uploadToCloud": "Ladda upp till molnet"
+ "unavailableTitle": "Inspelning kan inte göras"
},
"screenshareDisplayName": "{{name}}s skärm",
"sectionList": {
diff --git a/lang/main-te.json b/lang/main-te.json
index 18e2a9e1ed..481b19f56c 100644
--- a/lang/main-te.json
+++ b/lang/main-te.json
@@ -655,7 +655,6 @@
"on": "రికార్డింగు మొదలయింది",
"onBy": "{{name}} రికార్డింగును మొదలుపెట్టారు",
"pending": "Preparing to record the meeting…",
- "serviceDescription": "Your recording will be saved by the recording service",
"serviceDescriptionCloud": "Cloud recording",
"serviceName": "రికార్డింగు సేవ",
"signIn": "Sign in",
diff --git a/lang/main-tr.json b/lang/main-tr.json
index 5b6761a8f1..aae860613e 100644
--- a/lang/main-tr.json
+++ b/lang/main-tr.json
@@ -1045,19 +1045,16 @@
"recordAudioAndVideo": "Ses ve video kaydedin",
"recordTranscription": "Transkripsiyonu kaydet",
"saveLocalRecording": "Kayıt dosyasını yerel olarak kaydet (Beta)",
- "serviceDescription": "Kaydınız kayıt hizmeti tarafından kaydedilecektir",
"serviceDescriptionCloud": "Bulut kaydı",
"serviceDescriptionCloudInfo": "Kaydedilen toplantılar, kayıt süresinden 24 saat sonra otomatik olarak temizlenir.",
"serviceName": "Kayıt hizmeti",
"sessionAlreadyActive": "Bu oturum zaten kaydediliyor veya canlı yayınlanıyor.",
- "showAdvancedOptions": "Gelişmiş seçenekler",
"signIn": "Giriş yap",
"signOut": "Çıkış yap",
"surfaceError": "Lütfen geçerli sekmeyi seçin",
"title": "Kaydediliyor",
"unavailable": "Ah! {{serviceName}} şu anda kullanılamıyor. Sorunu çözmek için çalışıyoruz. Lütfen daha sonra tekrar deneyin.",
- "unavailableTitle": "Kayıt yapılamıyor",
- "uploadToCloud": "Buluta yükle"
+ "unavailableTitle": "Kayıt yapılamıyor"
},
"screenshareDisplayName": "{{name}}'nin ekranı",
"sectionList": {
diff --git a/lang/main-uk.json b/lang/main-uk.json
index c35c52323e..079c99ab03 100644
--- a/lang/main-uk.json
+++ b/lang/main-uk.json
@@ -939,7 +939,6 @@
"onlyRecordSelf": "Записувати лише мої аудіо та відео потоки",
"pending": "Підготовка до запису зустрічі…",
"saveLocalRecording": "Зберегти файл запису локально (ТЕСТУВАННЯ)",
- "serviceDescription": "Ваш запис буде збережено послугою запису",
"serviceDescriptionCloud": "Хмарний запис",
"serviceDescriptionCloudInfo": "Записані зустрічі будуть видалені автоматично через 24 години після їх запису.",
"serviceName": "Служба запису",
@@ -949,8 +948,7 @@
"surfaceError": "Виберіть поточну вкладку.",
"title": "Запис",
"unavailable": "Служба {{serviceName}} зараз недоступна. Ми працюємо над виправленням цієї помилки. Спробуйте пізніше.",
- "unavailableTitle": "Запис недоступний",
- "uploadToCloud": "Завантажити в хмару"
+ "unavailableTitle": "Запис недоступний"
},
"screenshareDisplayName": "Екран {{name}}",
"sectionList": {
diff --git a/lang/main-vi.json b/lang/main-vi.json
index 39412127b3..29c9b17512 100644
--- a/lang/main-vi.json
+++ b/lang/main-vi.json
@@ -1022,19 +1022,16 @@
"recordAudioAndVideo": "Ghi âm và video",
"recordTranscription": "Ghi chú giọng nói",
"saveLocalRecording": "Lưu tệp ghi âm cục bộ (Beta)",
- "serviceDescription": "Ghi hình của bạn sẽ được lưu bởi dịch vụ ghi hình",
"serviceDescriptionCloud": "Ghi âm trên đám mây",
"serviceDescriptionCloudInfo": "Cuộc họp được ghi lại sẽ tự động xóa sau 24 giờ kể từ thời gian ghi âm.",
"serviceName": "Dịch vụ ghi hình",
"sessionAlreadyActive": "Phiên này đã được ghi âm hoặc phát trực tiếp.",
- "showAdvancedOptions": "Tùy chọn nâng cao",
"signIn": "Đăng nhập",
"signOut": "Đăng xuất",
"surfaceError": "Vui lòng chọn tab hiện tại.",
"title": "Đang ghi hình",
"unavailable": "Rất tiếc! Dịch vụ {{serviceName}} đang không sẵn sàng. Chúng tôi đang xử lý vấn đề này. Vui lòng thử lại sau.",
- "unavailableTitle": "Ghi hình không hoạt động.",
- "uploadToCloud": "Tải lên đám mây"
+ "unavailableTitle": "Ghi hình không hoạt động."
},
"screenshareDisplayName": "Màn hình của {{name}}",
"sectionList": {
diff --git a/lang/main-zh-CN.json b/lang/main-zh-CN.json
index aad9049a9c..97a558d250 100644
--- a/lang/main-zh-CN.json
+++ b/lang/main-zh-CN.json
@@ -1136,19 +1136,16 @@
"recordAudioAndVideo": "",
"recordTranscription": "",
"saveLocalRecording": "本地保存录制文件(测试版)",
- "serviceDescription": "录制将由录制服务保存",
"serviceDescriptionCloud": "云录制",
"serviceDescriptionCloudInfo": "录制的会议将在录制后的24小时内自动清除。",
"serviceName": "录制服务",
"sessionAlreadyActive": "此会议已经在录制或直播中",
- "showAdvancedOptions": "高级选项",
"signIn": "登录",
"signOut": "注销",
"surfaceError": "请选择当前选项卡。",
"title": "录制中",
"unavailable": "糟糕!{{serviceName}}目前无法使用,我们正在努力解决这个问题,请稍后再试。",
- "unavailableTitle": "录制不可用",
- "uploadToCloud": "上传至云端"
+ "unavailableTitle": "录制不可用"
},
"screenshareDisplayName": "{{name}}的屏幕",
"sectionList": {
diff --git a/lang/main-zh-TW.json b/lang/main-zh-TW.json
index 1cb3c3a1dc..904880e14c 100644
--- a/lang/main-zh-TW.json
+++ b/lang/main-zh-TW.json
@@ -1136,19 +1136,16 @@
"recordAudioAndVideo": "錄製音訊和視訊",
"recordTranscription": "錄製字幕內容",
"saveLocalRecording": "將錄製檔案保存在本機(測試版)",
- "serviceDescription": "您的錄製會由錄製服務儲存",
"serviceDescriptionCloud": "雲端錄製",
"serviceDescriptionCloudInfo": "已錄製的會議將在 24 小時後自動清除。",
"serviceName": "錄製服務",
"sessionAlreadyActive": "已在錄製或直播此工作階段。",
- "showAdvancedOptions": "進階選項",
"signIn": "登入",
"signOut": "登出",
"surfaceError": "請選擇目前分頁",
"title": "錄製中",
"unavailable": "喔哦!{{serviceName}} 目前無法使用,我們正在解決此問題,請稍後再試。",
- "unavailableTitle": "錄製無法使用",
- "uploadToCloud": "上傳至雲端"
+ "unavailableTitle": "錄製無法使用"
},
"screenshareDisplayName": "{{name}} 的螢幕",
"sectionList": {
diff --git a/lang/main.json b/lang/main.json
index 55f4c77a13..c3fb30f6da 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -538,11 +538,14 @@
"sharedVideoLinkPlaceholder": "YouTube link or direct video link",
"show": "Show",
"start": "Start ",
+ "startBoth": "Start both",
"startLiveStreaming": "Start live stream",
"startRecording": "Start recording",
"startRemoteControlErrorMessage": "An error occurred while trying to start the remote control session!",
"startTranscribing": "Start transcribing",
"startTranscription": "Start transcription",
+ "stop": "Stop",
+ "stopBoth": "Stop both",
"stopLiveStreaming": "Stop live stream",
"stopRecording": "Stop recording",
"stopRecordingWarning": "Are you sure you would like to stop the recording?",
@@ -1190,6 +1193,8 @@
"busy": "We're working on freeing recording resources. Please try again in a few minutes.",
"busyTitle": "All recorders are currently busy",
"copyLink": "Copy Link",
+ "dropbox": "Dropbox",
+ "dropboxSignInPrompt": "Connect to save your recording",
"error": "Recording failed. Please try again.",
"errorFetchingLink": "Error fetching recording link.",
"expandedOff": "Recording has stopped",
@@ -1204,6 +1209,9 @@
"highlightMomentSucessDescription": "Your highlighted moment will be added to the meeting summary.",
"inProgress": "Recording or live streaming in progress",
"linkGenerated": "We have generated a link to your recording.",
+ "linkNotShared": "Link not shared",
+ "linkShared": "Link shared with participants",
+ "localRecording": "Local recording",
"localRecordingNoNotificationWarning": "The recording will not be announced to other participants. You will need to let them know that the meeting is recorded.",
"localRecordingNoVideo": "Video is not being recorded",
"localRecordingStartWarning": "Please make sure you stop the recording before exiting the meeting in order to save it.",
@@ -1214,6 +1222,7 @@
"loggedIn": "Logged in as {{userName}}",
"noMicPermission": "Microphone track could not be created. Please grant permission to use the microphone.",
"noStreams": "No audio or video stream detected.",
+ "notSignedIn": "Not signed in",
"off": "Recording stopped",
"offBy": "{{name}} stopped the recording",
"offByWithTranscription": "{{name}} stopped the recording and transcription",
@@ -1227,20 +1236,21 @@
"policyError": "You tried to start a recording too quickly. Please try again later!",
"recordAudioAndVideo": "Record audio and video",
"recordTranscription": "Record transcription",
+ "recordingOptions": "Recording options",
"saveLocalRecording": "Save recording file locally",
- "serviceDescription": "Your recording will be saved by the recording service",
"serviceDescriptionCloud": "Cloud recording",
"serviceDescriptionCloudInfo": "Recorded meetings are automatically cleared 24h after their recording time.",
"serviceName": "Recording service",
"sessionAlreadyActive": "This session is already being recorded or live streamed.",
- "showAdvancedOptions": "Advanced options",
"signIn": "Sign in",
"signOut": "Sign out",
+ "storageLocation": "Storage location",
"surfaceError": "Please select the current tab.",
"title": "Recording",
+ "transcriptionLanguage": "Transcription language",
+ "transcriptionOptions": "Transcription options",
"unavailable": "Oops! The {{serviceName}} is currently unavailable. We're working on resolving the issue. Please try again later.",
- "unavailableTitle": "Recording unavailable",
- "uploadToCloud": "Upload to the cloud"
+ "unavailableTitle": "Recording unavailable"
},
"screenshareDisplayName": "{{name}}'s screen",
"sectionList": {
diff --git a/react/features/follow-me/actions.ts b/react/features/follow-me/actions.ts
index 897d28e166..1de21a3917 100644
--- a/react/features/follow-me/actions.ts
+++ b/react/features/follow-me/actions.ts
@@ -1,3 +1,5 @@
+import { IStore } from '../app/types';
+
import {
SET_FOLLOW_ME,
SET_FOLLOW_ME_MODERATOR,
@@ -71,3 +73,20 @@ export function setFollowMeRecorder(enabled: boolean) {
enabled
};
}
+
+/**
+ * Enables or disables the Follow Me feature used only for the recorder, disabling the regular
+ * Follow Me feature first if it was enabled — the two are mutually exclusive, so a caller wanting
+ * to flip one on doesn't also need to know to flip the other off.
+ *
+ * @param {boolean} enabled - Whether Follow Me should be enabled and used only by the recorder.
+ * @returns {Function}
+ */
+export function setFollowMeRecorderExclusive(enabled: boolean) {
+ return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {
+ if (enabled && getState()['features/follow-me'].followMeEnabled) {
+ dispatch(setFollowMe(false));
+ }
+ dispatch(setFollowMeRecorder(enabled));
+ };
+}
diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts b/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
index 6a346dab51..50a9abb16c 100644
--- a/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
+++ b/react/features/recording/components/Recording/AbstractStartRecordingDialog.ts
@@ -5,6 +5,7 @@ import { createRecordingDialogEvent } from '../../../analytics/AnalyticsEvents';
import { sendAnalytics } from '../../../analytics/functions';
import { IReduxState, IStore } from '../../../app/types';
import { IJitsiConference } from '../../../base/conference/reducer';
+import { DEFAULT_LANGUAGE } from '../../../base/i18n/i18next';
import { MEET_FEATURES } from '../../../base/jwt/constants';
import { isJwtFeatureEnabled } from '../../../base/jwt/functions';
import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
@@ -33,6 +34,16 @@ import {
} from '../../functions';
import { ISessionData } from '../../reducer';
+/**
+ * The set of start/stop operations to apply on the running services. Each
+ * operation is applied only when its flag is true.
+ */
+interface IRecordingChanges {
+ startRecording?: boolean;
+ startTranscription?: boolean;
+ stopRecording?: boolean;
+ stopTranscription?: boolean;
+}
export interface IProps extends WithTranslation {
@@ -143,23 +154,11 @@ export interface IProps extends WithTranslation {
*/
dispatch: IStore['dispatch'];
- /**
- * Whether to pre-select recording when the dialog opens.
- * Takes precedence over the running recording state when set.
- */
- initialRecording?: boolean;
-
- /**
- * Whether to pre-select transcription when the dialog opens.
- * Overrides _autoTranscribeOnRecord when provided.
- */
- initialTranscription?: boolean;
-
navigation: any;
/**
- * Pre-selects the audio/video recording toggle when no session is active.
- * Used by the nudge flow to open the dialog with recording already checked.
+ * When false, the recording section is collapsed on open, putting the
+ * focus on the transcription section (e.g. subtitles/nudge flows).
*/
recordAudioAndVideo?: boolean;
}
@@ -181,6 +180,12 @@ interface IState {
*/
localRecordingOnlySelf: boolean;
+ /**
+ * The language ("translation-languages:" prefixed) the transcription will
+ * be saved in.
+ */
+ selectedLanguage: string | null;
+
/**
* The currently selected recording service of type: RECORDING_TYPES.
*/
@@ -191,16 +196,6 @@ interface IState {
*/
sharingEnabled: boolean;
- /**
- * True if the user requested the service to record audio and video.
- */
- shouldRecordAudioAndVideo: boolean;
-
- /**
- * True if the user requested the service to record transcription.
- */
- shouldRecordTranscription: boolean;
-
/**
* Number of MiB of available space in user's Dropbox account.
*/
@@ -213,7 +208,9 @@ interface IState {
}
/**
- * Component for the recording start dialog.
+ * Component for the recording & transcription dialog. Exposes independent
+ * start/stop handlers for each service plus combined "both" handlers; each
+ * handler applies its changes immediately.
*/
class AbstractStartRecordingDialog extends Component<IProps, IState> {
/**
@@ -225,14 +222,24 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
super(props);
// Bind event handler so it is only bound once for every instance.
- this._onSubmit = this._onSubmit.bind(this);
this._onSelectedRecordingServiceChanged
= this._onSelectedRecordingServiceChanged.bind(this);
this._onSharingSettingChanged = this._onSharingSettingChanged.bind(this);
this._toggleScreenshotCapture = this._toggleScreenshotCapture.bind(this);
this._onLocalRecordingSelfChange = this._onLocalRecordingSelfChange.bind(this);
- this._onTranscriptionChange = this._onTranscriptionChange.bind(this);
- this._onRecordAudioAndVideoChange = this._onRecordAudioAndVideoChange.bind(this);
+ this._onSubtitlesLanguageChanged = this._onSubtitlesLanguageChanged.bind(this);
+ this._onStartRecording = this._onStartRecording.bind(this);
+ this._onStopRecording = this._onStopRecording.bind(this);
+ this._onStartTranscription = this._onStartTranscription.bind(this);
+ this._onStopTranscription = this._onStopTranscription.bind(this);
+ this._onStartBoth = this._onStartBoth.bind(this);
+ this._onStopBoth = this._onStopBoth.bind(this);
+ this._onStartRecordingPress = this._onStartRecordingPress.bind(this);
+ this._onStopRecordingPress = this._onStopRecordingPress.bind(this);
+ this._onStartTranscriptionPress = this._onStartTranscriptionPress.bind(this);
+ this._onStopTranscriptionPress = this._onStopTranscriptionPress.bind(this);
+ this._onStartBothPress = this._onStartBothPress.bind(this);
+ this._onStopBothPress = this._onStopBothPress.bind(this);
let selectedRecordingService = '';
@@ -248,25 +255,15 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
selectedRecordingService = RECORDING_TYPES.LOCAL;
}
// If no service is available, selectedRecordingService stays '' and
- // the Start Recording button will be disabled.
-
- const recordingRunning = props._recordingRunning ?? false;
- const transcriptionRunning = props._transcriptionRunning ?? false;
- const hasActiveSession = recordingRunning || transcriptionRunning;
+ // the start recording button will be disabled.
this.state = {
isTokenValid: false,
isValidating: false,
userName: undefined,
sharingEnabled: true,
- // When a session is active derive initial toggles from running state.
- // Explicit props (nudge flow) take priority.
- shouldRecordAudioAndVideo: hasActiveSession
- ? (props.initialRecording ?? recordingRunning)
- : (props.recordAudioAndVideo ?? false),
- shouldRecordTranscription: hasActiveSession
- ? (props.initialTranscription ?? transcriptionRunning)
- : (props.initialTranscription ?? props._autoTranscribeOnRecord ?? false),
+ selectedLanguage: props._subtitlesLanguage
+ ?? `translation-languages:${DEFAULT_LANGUAGE}`,
spaceLeft: undefined,
selectedRecordingService,
localRecordingOnlySelf: false
@@ -346,27 +343,14 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
}
/**
- * Handles transcription switch change.
+ * Handles transcription language changes.
*
- * @param {boolean} value - The new value.
+ * @param {string} selectedLanguage - The new ("translation-languages:"
+ * prefixed) language.
* @returns {void}
*/
- _onTranscriptionChange(value: boolean) {
- this.setState({
- shouldRecordTranscription: value
- });
- }
-
- /**
- * Handles audio and video switch change.
- *
- * @param {boolean} value - The new value.
- * @returns {void}
- */
- _onRecordAudioAndVideoChange(value: boolean) {
- this.setState({
- shouldRecordAudioAndVideo: value
- });
+ _onSubtitlesLanguageChanged(selectedLanguage: string) {
+ this.setState({ selectedLanguage });
}
/**
@@ -417,27 +401,112 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
}
/**
- * Returns true when the current toggle selection differs from what is
- * already running — i.e. there is something to apply.
+ * Returns true when the start recording button should be disabled: either
+ * no recording service is available or the selected one is not ready to
+ * be used (e.g. Dropbox without a valid sign-in).
*
* @returns {boolean}
*/
- _isChanged() {
- const { _recordingRunning = false, _transcriptionRunning = false } = this.props;
+ _isStartRecordingDisabled() {
+ const { isTokenValid, selectedRecordingService } = this.state;
+
+ if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
+ || selectedRecordingService === RECORDING_TYPES.LOCAL) {
+ return false;
+ }
+ if (selectedRecordingService === RECORDING_TYPES.DROPBOX) {
+ return !isTokenValid;
+ }
+
+ return true;
+ }
+
+ /**
+ * Starts the audio & video recording. When the deployment is configured
+ * with {@code transcription.autoTranscribeOnRecord} the transcription is
+ * started along with it.
+ *
+ * @returns {boolean} - True when the action was applied.
+ */
+ _onStartRecording() {
+ const { _autoTranscribeOnRecord, _canTranscribe, _transcriptionRunning } = this.props;
- return this.state.shouldRecordAudioAndVideo !== _recordingRunning
- || this.state.shouldRecordTranscription !== _transcriptionRunning;
+ return this._applyChanges({
+ startRecording: true,
+ startTranscription: _autoTranscribeOnRecord && _canTranscribe && !_transcriptionRunning
+ });
}
/**
- * Applies recording/transcription changes by computing the delta between
- * the current running state and the user's selection, then starting or
- * stopping each service accordingly.
+ * Stops the audio & video recording, leaving a running transcription
+ * untouched.
+ *
+ * @returns {boolean} - True when the action was applied.
+ */
+ _onStopRecording() {
+ return this._applyChanges({ stopRecording: true });
+ }
+
+ /**
+ * Starts the transcription, leaving the recording state untouched.
+ *
+ * @returns {boolean} - True when the action was applied.
+ */
+ _onStartTranscription() {
+ return this._applyChanges({ startTranscription: true });
+ }
+
+ /**
+ * Stops the transcription, leaving a running recording untouched.
*
- * @returns {boolean|undefined} - True to close the dialog, undefined to
- * keep it open (e.g. on validation failure).
+ * @returns {boolean} - True when the action was applied.
*/
- _onSubmit() {
+ _onStopTranscription() {
+ return this._applyChanges({ stopTranscription: true });
+ }
+
+ /**
+ * Starts every service which is not running yet.
+ *
+ * @returns {boolean} - True when the action was applied.
+ */
+ _onStartBoth() {
+ const { _recordingRunning, _transcriptionRunning } = this.props;
+
+ return this._applyChanges({
+ startRecording: !_recordingRunning,
+ startTranscription: !_transcriptionRunning
+ });
+ }
+
+ /**
+ * Stops every running service.
+ *
+ * @returns {boolean} - True when the action was applied.
+ */
+ _onStopBoth() {
+ const { _recordingRunning, _transcriptionRunning } = this.props;
+
+ return this._applyChanges({
+ stopRecording: _recordingRunning,
+ stopTranscription: _transcriptionRunning
+ });
+ }
+
+ /**
+ * Applies the requested recording/transcription changes by starting or
+ * stopping each service accordingly.
+ *
+ * @param {IRecordingChanges} changes - Which services to start/stop.
+ * @returns {boolean} - True when the changes were applied, false when the
+ * action could not be performed (e.g. validation failure).
+ */
+ _applyChanges({
+ startRecording = false,
+ startTranscription = false,
+ stopRecording = false,
+ stopTranscription = false
+ }: IRecordingChanges) {
const {
_appKey,
_conference,
@@ -455,17 +524,11 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
const {
localRecordingOnlySelf,
+ selectedLanguage,
selectedRecordingService,
- sharingEnabled,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription
+ sharingEnabled
} = this.state;
- const startRecording = !_recordingRunning && shouldRecordAudioAndVideo;
- const stopRecording = _recordingRunning && !shouldRecordAudioAndVideo;
- const startTranscription = !_transcriptionRunning && shouldRecordTranscription;
- const stopTranscription = _transcriptionRunning && !shouldRecordTranscription;
-
// Pre-seed intents synchronously — must happen before any async operations
// so the sound/notification coordinator knows what to wait for.
if (startRecording || startTranscription) {
@@ -542,7 +605,7 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
} else {
dispatch(showErrorNotification({ titleKey: 'dialog.noDropboxToken' }));
- return;
+ return false;
}
break;
}
@@ -558,7 +621,8 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
case RECORDING_TYPES.LOCAL: {
dispatch(startLocalVideoRecording(localRecordingOnlySelf));
_conference?.getMetadataHandler().setMetadata(RECORDING_METADATA_ID, {
- isTranscribingEnabled: shouldRecordTranscription
+ isTranscribingEnabled:
+ startTranscription || (_transcriptionRunning && !stopTranscription)
});
return true;
@@ -578,19 +642,20 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
if (startTranscription) {
if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) {
dispatch(setRequestingSubtitles(
- true, _displaySubtitles, _subtitlesLanguage, true, startRecording || _recordingRunning));
+ true, _displaySubtitles, selectedLanguage, true, startRecording || _recordingRunning));
} else {
+ // Spread the existing metadata so that starting transcription while a non-Jitsi
+ // recording is already running does not drop isRecordingRequested — that would
+ // read as recording having stopped to the metadata listener (see the stopRecording
+ // and stopTranscription branches above, which spread for the same reason).
+ const existingRecMeta = _conference?.getMetadataHandler()?.getMetadata()[RECORDING_METADATA_ID] ?? {};
+
_conference?.getMetadataHandler().setMetadata(RECORDING_METADATA_ID, {
+ ...existingRecMeta,
+ ...(startRecording && { isRecordingRequested: true }),
isTranscribingEnabled: true
});
}
- } else if (startRecording && shouldRecordTranscription
- && selectedRecordingService !== RECORDING_TYPES.JITSI_REC_SERVICE) {
- // Starting recording with transcription already on — ensure metadata is consistent.
- _conference?.getMetadataHandler().setMetadata(RECORDING_METADATA_ID, {
- isRecordingRequested: true,
- isTranscribingEnabled: true
- });
} else if (startRecording) {
// Recording started without a transcription change: announce it in room metadata so the
// other participants get the recording start notification/sound (this is what the
@@ -616,6 +681,69 @@ class AbstractStartRecordingDialog extends Component<IProps, IState> {
// To be implemented by subclass.
}
+ /**
+ * Dismisses the dialog/screen once an action from the list below has been applied.
+ *
+ * @returns {void}
+ */
+ _dismiss() {
+ // To be implemented by subclass.
+ }
+
+ /**
+ * Starts the recording and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStartRecordingPress() {
+ this._onStartRecording() && this._dismiss();
+ }
+
+ /**
+ * Stops the recording and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStopRecordingPress() {
+ this._onStopRecording() && this._dismiss();
+ }
+
+ /**
+ * Starts the transcription and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStartTranscriptionPress() {
+ this._onStartTranscription() && this._dismiss();
+ }
+
+ /**
+ * Stops the transcription and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStopTranscriptionPress() {
+ this._onStopTranscription() && this._dismiss();
+ }
+
+ /**
+ * Starts every service which is not running yet and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStartBothPress() {
+ this._onStartBoth() && this._dismiss();
+ }
+
+ /**
+ * Stops every running service and dismisses the dialog/screen.
+ *
+ * @returns {void}
+ */
+ _onStopBothPress() {
+ this._onStopBoth() && this._dismiss();
+ }
+
/**
* Renders the platform specific dialog content.
*
diff --git a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
index 26421844c5..8c37ac21a1 100644
--- a/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
+++ b/react/features/recording/components/Recording/AbstractStartRecordingDialogContent.tsx
@@ -10,7 +10,10 @@ import { MEET_FEATURES } from '../../../base/jwt/constants';
import { isJwtFeatureEnabled } from '../../../base/jwt/functions';
import { isLocalParticipantModerator } from '../../../base/participants/functions';
import { authorizeDropbox, updateDropboxToken } from '../../../dropbox/actions';
+import { setFollowMeRecorderExclusive } from '../../../follow-me/actions';
+import { isFollowMeActive, isFollowMeRecorderActive } from '../../../follow-me/functions';
import { isVpaasMeeting } from '../../../jaas/functions';
+import { getAvailableSubtitlesLanguages } from '../../../subtitles/functions.any';
import { canAddTranscriber, isRecorderTranscriptionsRunning } from '../../../transcribing/functions';
import { RECORDING_TYPES } from '../../constants';
import { hasRecordingOrTranscriptionFeature, isLiveStreamingRunning, supportsLocalRecording } from '../../functions';
@@ -21,6 +24,12 @@ import { hasRecordingOrTranscriptionFeature, isLiveStreamingRunning, supportsLoc
*/
export interface IProps extends WithTranslation {
+ /**
+ * The available ("translation-languages:" prefixed) transcription
+ * languages.
+ */
+ _availableLanguages: Array<string>;
+
/**
* Whether the local participant can manage recording/transcription (moderator or holds the
* recording/transcription feature claim).
@@ -37,6 +46,21 @@ export interface IProps extends WithTranslation {
*/
_dialogStyles: any;
+ /**
+ * Whether any moderator has the regular Follow Me feature active.
+ */
+ _followMeActive: boolean;
+
+ /**
+ * Whether any moderator has the recorder Follow Me feature active.
+ */
+ _followMeRecorderActive: boolean;
+
+ /**
+ * Whether the local participant has the recorder Follow Me setting enabled.
+ */
+ _followMeRecorderEnabled: boolean;
+
/**
* Whether to hide the storage warning or not.
*/
@@ -92,6 +116,11 @@ export interface IProps extends WithTranslation {
*/
_transcriptionRunning: boolean;
+ /**
+ * CSS classes object (web only).
+ */
+ classes?: Partial<Record<string, string>>;
+
/**
* The redux dispatch function.
*/
@@ -134,21 +163,15 @@ export interface IProps extends WithTranslation {
*/
localRecordingOnlySelf?: boolean;
- /**
- * The function will be called when there are changes related to the
- * switches.
- */
- onChange: Function;
-
/**
* Callback to change the local recording only self setting.
*/
onLocalRecordingSelfChange?: () => void;
/**
- * Callback to change the audio and video recording setting.
+ * The function will be called when the selected recording service changes.
*/
- onRecordAudioAndVideoChange: Function;
+ onRecordingServiceChange: (service: string) => void;
/**
* Callback to be invoked on sharing setting change.
@@ -156,27 +179,62 @@ export interface IProps extends WithTranslation {
onSharingSettingChanged: () => void;
/**
- * Callback to change the transcription recording setting.
+ * Starts every service which is not running.
*/
- onTranscriptionChange: Function;
+ onStartBoth: () => void;
+
+ /**
+ * Starts the audio & video recording.
+ */
+ onStartRecording: () => void;
+
+ /**
+ * Starts the transcription.
+ */
+ onStartTranscription: () => void;
+
+ /**
+ * Stops every running service.
+ */
+ onStopBoth: () => void;
+
+ /**
+ * Stops the audio & video recording.
+ */
+ onStopRecording: () => void;
+
+ /**
+ * Stops the transcription.
+ */
+ onStopTranscription: () => void;
+
+ /**
+ * Callback to be invoked when the transcription language changes.
+ */
+ onSubtitlesLanguageChange: (language: string) => void;
+
+ /**
+ * When false, the recording section starts collapsed and the
+ * transcription section starts expanded, putting the focus on
+ * transcription (e.g. subtitles/nudge flows).
+ */
+ recordAudioAndVideo?: boolean;
/**
* When true, audio/video recording is specifically in progress.
- * The service selector is hidden since the destination cannot change mid-session.
*/
- recordingRunning?: boolean;
+ recordingRunning: boolean;
/**
- * The currently selected recording service of type: RECORDING_TYPES.
+ * The ("translation-languages:" prefixed) language the transcription will
+ * be saved in.
*/
- selectedRecordingService: string | null;
+ selectedLanguage: string | null;
/**
- * When true, at least one service (recording or transcription) is active.
- * Used to bypass the _canStartTranscribing guard so the transcription toggle
- * remains visible for stopping.
+ * The currently selected recording service of type: RECORDING_TYPES.
*/
- servicesRunning?: boolean;
+ selectedRecordingService: string | null;
/**
* Boolean to set file recording sharing on or off.
@@ -184,19 +242,21 @@ export interface IProps extends WithTranslation {
sharingSetting: boolean;
/**
- * Whether to show the audio and video related content.
+ * Number of MiB of available space in user's Dropbox account.
*/
- shouldRecordAudioAndVideo: boolean;
+ spaceLeft?: number;
/**
- * Whether to show the transcription related content.
+ * Whether the start recording action is currently unavailable (no usable
+ * service selected).
*/
- shouldRecordTranscription: boolean;
+ startRecordingDisabled: boolean;
/**
- * Number of MiB of available space in user's Dropbox account.
+ * Whether transcription is currently running (from the dialog's point of
+ * view, i.e. Only when the local participant can control it).
*/
- spaceLeft?: number;
+ transcriptionRunning: boolean;
/**
* The display name of the user's Dropbox account.
@@ -207,13 +267,27 @@ export interface IProps extends WithTranslation {
export interface IState {
/**
- * Whether to show the advanced options or not.
+ * Whether the language list is expanded (used by the native inline
+ * picker; the web renders a combobox instead).
*/
- showAdvancedOptions: boolean;
+ showLanguageList: boolean;
+
+ /**
+ * Whether the recording section options are expanded.
+ */
+ showRecordingOptions: boolean;
+
+ /**
+ * Whether the transcription section options are expanded.
+ */
+ showTranscriptionOptions: boolean;
}
/**
- * React Component for getting confirmation to start a recording session.
+ * React Component for the recording & transcription dialog content: two
+ * sections (audio & video recording, transcription), each with its own
+ * start/stop button and a collapsible options area, plus footer buttons
+ * acting on both services at once.
*
* @augments Component
*/
@@ -229,73 +303,126 @@ class AbstractStartRecordingDialogContent extends Component<IProps, IState> {
// Bind event handler; it bounds once for every instance.
this._onSignIn = this._onSignIn.bind(this);
this._onSignOut = this._onSignOut.bind(this);
- this._onDropboxSwitchChange = this._onDropboxSwitchChange.bind(this);
- this._onRecordingServiceSwitchChange = this._onRecordingServiceSwitchChange.bind(this);
- this._onLocalRecordingSwitchChange = this._onLocalRecordingSwitchChange.bind(this);
- this._onTranscriptionSwitchChange = this._onTranscriptionSwitchChange.bind(this);
- this._onRecordAudioAndVideoSwitchChange = this._onRecordAudioAndVideoSwitchChange.bind(this);
- this._onToggleShowOptions = this._onToggleShowOptions.bind(this);
-
+ this._onRecordingServiceChange = this._onRecordingServiceChange.bind(this);
+ this._onFollowMeRecorderChange = this._onFollowMeRecorderChange.bind(this);
+ this._onToggleRecordingOptions = this._onToggleRecordingOptions.bind(this);
+ this._onToggleTranscriptionOptions = this._onToggleTranscriptionOptions.bind(this);
+ this._onToggleLanguageList = this._onToggleLanguageList.bind(this);
+
+ // Both sections start collapsed, except transcription options are pre-expanded when a
+ // caller (e.g. the transcription nudge) explicitly asks to focus transcription instead
+ // of recording by passing recordAudioAndVideo: false.
this.state = {
- showAdvancedOptions: true
+ showLanguageList: false,
+ showRecordingOptions: false,
+ showTranscriptionOptions: props.recordAudioAndVideo === false
};
}
/**
- * Implements the Component's componentDidMount method.
+ * Implements {@code Component#componentDidUpdate}.
*
* @inheritdoc
*/
- override componentDidMount() {
- if (!this._shouldRenderNoIntegrationsContent()
- && !this._shouldRenderIntegrationsContent()
- && !this._shouldRenderFileSharingContent()) {
- const { _localRecordingAvailable, onChange, onRecordAudioAndVideoChange,
- selectedRecordingService, servicesRunning, shouldRecordAudioAndVideo } = this.props;
-
- // When a session is already active the initial toggle state is derived from what
- // is currently running — don't override it with the "fresh open" defaults.
- if (servicesRunning) {
- return;
- }
+ override componentDidUpdate(prevProps: IProps) {
+ // Auto sign-out when the user chooses another recording service.
+ if (prevProps.selectedRecordingService === RECORDING_TYPES.DROPBOX
+ && this.props.selectedRecordingService !== RECORDING_TYPES.DROPBOX && this.props.isTokenValid) {
+ this._onSignOut();
+ }
+ }
- if (!_localRecordingAvailable) {
- return;
- }
+ /**
+ * Toggles the recording section options.
+ *
+ * @returns {void}
+ */
+ _onToggleRecordingOptions() {
+ this.setState({ showRecordingOptions: !this.state.showRecordingOptions });
+ }
- // Pre-select local recording on open and ensure the audio/video flag is on
- // so _isChanged() reflects the selection and the Start button is enabled.
- // Done inline (not via _onLocalRecordingSwitchChange) to avoid the toggle-off
- // path that the same handler uses when the user deliberately deselects.
- if (!shouldRecordAudioAndVideo) {
- onRecordAudioAndVideoChange(true);
+ /**
+ * Toggles the transcription section options.
+ *
+ * @returns {void}
+ */
+ _onToggleTranscriptionOptions() {
+ this.setState({ showTranscriptionOptions: !this.state.showTranscriptionOptions });
+ }
+
+ /**
+ * Toggles the inline language list.
+ *
+ * @returns {void}
+ */
+ _onToggleLanguageList() {
+ this.setState({ showLanguageList: !this.state.showLanguageList });
+ }
+
+ /**
+ * Returns the list of recording services (RECORDING_TYPES values) the
+ * participant can currently pick from.
+ *
+ * Cloud based services (Jitsi recording service, Dropbox) require the
+ * recording JWT feature and are unavailable while a live stream runs
+ * (both use Jibri). Dropbox is additionally unavailable while a session
+ * is running (integrationsEnabled covers that).
+ *
+ * @returns {Array<string>}
+ */
+ _getRecordingServiceOptions(): Array<string> {
+ const {
+ _isLiveStreamRunning,
+ _localRecordingAvailable,
+ _renderRecording,
+ fileRecordingsServiceEnabled,
+ integrationsEnabled
+ } = this.props;
+ const options = [];
+
+ if (_renderRecording && !_isLiveStreamRunning) {
+ if (fileRecordingsServiceEnabled) {
+ options.push(RECORDING_TYPES.JITSI_REC_SERVICE);
}
- if (selectedRecordingService !== RECORDING_TYPES.LOCAL) {
- onChange(RECORDING_TYPES.LOCAL);
+ if (integrationsEnabled) {
+ options.push(RECORDING_TYPES.DROPBOX);
}
}
+ if (_localRecordingAvailable) {
+ options.push(RECORDING_TYPES.LOCAL);
+ }
+
+ return options;
}
/**
- * Implements {@code Component#componentDidUpdate}.
+ * Whether the audio & video recording section should be rendered.
*
- * @inheritdoc
+ * @param {Array<string>} [options] - The result of {@code _getRecordingServiceOptions()},
+ * when the caller already computed it (avoids recomputing it a second time).
+ * @returns {boolean}
*/
- override componentDidUpdate(prevProps: IProps) {
- // Auto sign-out when the use chooses another recording service.
- if (prevProps.selectedRecordingService === RECORDING_TYPES.DROPBOX
- && this.props.selectedRecordingService !== RECORDING_TYPES.DROPBOX && this.props.isTokenValid) {
- this._onSignOut();
- }
+ _shouldRenderRecordingSection(options: Array<string> = this._getRecordingServiceOptions()) {
+ return this.props.recordingRunning || options.length > 0;
+ }
+
+ /**
+ * Whether the transcription section should be rendered.
+ *
+ * @returns {boolean}
+ */
+ _shouldRenderTranscriptionSection() {
+ return this._canStartTranscribing() || this.props.transcriptionRunning;
}
/**
- * Returns whether the advanced options should be rendered.
+ * Whether the footer buttons (start both / stop both) should be rendered.
+ * They only make sense when the participant can act on both services.
*
* @returns {boolean}
*/
- _onToggleShowOptions() {
- this.setState({ showAdvancedOptions: !this.state.showAdvancedOptions });
+ _shouldRenderFooter() {
+ return this._shouldRenderRecordingSection() && this._shouldRenderTranscriptionSection();
}
/**
@@ -322,149 +449,161 @@ class AbstractStartRecordingDialogContent extends Component<IProps, IState> {
}
/**
- * Whether the save transcription content should be rendered or not.
- *
- * @returns {boolean}
- */
- _canStartTranscribing() {
- return this.props._canStartTranscribing;
- }
-
- /**
- * Whether the no integrations content should be rendered or not.
+ * Whether the recorder follow me option should be rendered: moderators
+ * only, and only for the cloud based services which spawn a recorder
+ * participant that can follow (local recordings record the own view).
*
* @returns {boolean}
*/
- _shouldRenderNoIntegrationsContent() {
- // show the non integrations part only if fileRecordingsServiceEnabled
- // is enabled
- if (!this.props.fileRecordingsServiceEnabled) {
- return false;
- }
+ _shouldRenderFollowMeRecorder() {
+ const { _isModerator, selectedRecordingService } = this.props;
- return true;
+ return _isModerator
+ && (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
+ || selectedRecordingService === RECORDING_TYPES.DROPBOX);
}
/**
- * Whether the integrations content should be rendered or not.
+ * Whether the save transcription content should be rendered or not.
*
* @returns {boolean}
*/
- _shouldRenderIntegrationsContent() {
- if (!this.props.integrationsEnabled) {
- return false;
- }
-
- return true;
+ _canStartTranscribing() {
+ return this.props._canStartTranscribing;
}
/**
- * Handler for transcription switch change.
+ * Returns the translation key labelling the given recording service in
+ * the storage service picker.
*
- * @param {boolean} value - The new value.
- * @returns {void}
- */
- _onTranscriptionSwitchChange(value: boolean | undefined) {
- this.props.onTranscriptionChange(value);
- }
+ * @param {string} service - One of the RECORDING_TYPES values.
+ * @returns {string}
+ */
+ _getServiceLabelKey(service: string | null) {
+ switch (service) {
+ case RECORDING_TYPES.JITSI_REC_SERVICE:
+ return this.props.isVpaas ? 'recording.serviceDescriptionCloud' : 'recording.serviceName';
+ case RECORDING_TYPES.DROPBOX:
+ return 'recording.dropbox';
+ case RECORDING_TYPES.LOCAL:
+ return 'recording.localRecording';
+ }
- /**
- * Handler for audio and video switch change.
- *
- * @param {boolean} value - The new value.
- * @returns {void}
- */
- _onRecordAudioAndVideoSwitchChange(value: boolean | undefined) {
- this.props.onRecordAudioAndVideoChange(value);
+ return '';
}
/**
- * Handler for onValueChange events from the Switch component.
+ * Returns the one line summary of the recording options, shown in the
+ * collapsed accordion header: the selected storage service followed by
+ * the state of its suboptions.
*
- * @returns {void}
+ * @returns {string}
*/
- _onRecordingServiceSwitchChange() {
+ _getRecordingSummary() {
const {
- onChange,
- onRecordAudioAndVideoChange,
- onTranscriptionChange,
+ isTokenValid,
+ localRecordingOnlySelf,
selectedRecordingService,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription
+ sharingSetting,
+ t,
+ userName
} = this.props;
- if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) {
- // Cloud is selected but both options are off (switch visually OFF) —
- // clicking re-enables both advanced options.
- if (!shouldRecordAudioAndVideo && !shouldRecordTranscription) {
- onRecordAudioAndVideoChange(true);
- onTranscriptionChange(true);
+ if (!selectedRecordingService) {
+ return '';
+ }
+
+ const parts = [ t(this._getServiceLabelKey(selectedRecordingService)) ];
+
+ switch (selectedRecordingService) {
+ case RECORDING_TYPES.JITSI_REC_SERVICE:
+ if (this._shouldRenderFileSharingContent()) {
+ parts.push(t(sharingSetting ? 'recording.linkShared' : 'recording.linkNotShared'));
+ }
+ break;
+ case RECORDING_TYPES.DROPBOX:
+ parts.push(isTokenValid ? t('recording.loggedIn', { userName }) : t('recording.notSignedIn'));
+ break;
+ case RECORDING_TYPES.LOCAL:
+ if (localRecordingOnlySelf) {
+ parts.push(t('recording.onlyRecordSelf'));
}
+ break;
+ }
- return;
+ if (this._shouldRenderFollowMeRecorder() && this._isFollowMeRecorderChecked()) {
+ parts.push(t('settings.followMeRecorder'));
}
- onChange(RECORDING_TYPES.JITSI_REC_SERVICE);
+ return parts.join(' · ');
+ }
- // If both options are off, re-enable them in the same click so the switch turns ON
- // immediately — without this, checked stays false until a second click.
- if (!shouldRecordAudioAndVideo && !shouldRecordTranscription) {
- onRecordAudioAndVideoChange(true);
- onTranscriptionChange(true);
- }
+ /**
+ * Returns the one line summary of the transcription options, shown in the
+ * collapsed accordion header: the selected language.
+ *
+ * @returns {string}
+ */
+ _getTranscriptionSummary() {
+ const { selectedLanguage, t } = this.props;
+
+ return selectedLanguage ? t(selectedLanguage) : '';
}
/**
- * Handler for onValueChange events from the Switch component.
+ * Handler for recording service selection changes.
*
+ * @param {string} service - The newly selected service.
* @returns {void}
*/
- _onDropboxSwitchChange() {
- const {
- isTokenValid,
- onChange,
- selectedRecordingService
- } = this.props;
+ _onRecordingServiceChange(service: string) {
+ const { isTokenValid, onRecordingServiceChange, selectedRecordingService } = this.props;
- // act like group, cannot toggle off
- if (selectedRecordingService === RECORDING_TYPES.DROPBOX) {
+ if (service === selectedRecordingService) {
return;
}
- onChange(RECORDING_TYPES.DROPBOX);
+ onRecordingServiceChange(service);
- if (!isTokenValid) {
+ if (service === RECORDING_TYPES.DROPBOX && !isTokenValid) {
this._onSignIn();
}
}
/**
- * Handler for onValueChange events from the Switch component.
+ * Handler for the recorder follow me setting.
*
+ * @param {boolean} enabled - The new value.
* @returns {void}
*/
- _onLocalRecordingSwitchChange() {
- const {
- _localRecordingAvailable,
- onChange,
- onRecordAudioAndVideoChange,
- selectedRecordingService
- } = this.props;
+ _onFollowMeRecorderChange(enabled?: boolean) {
+ const value = enabled ?? !this.props._followMeRecorderEnabled;
- if (!_localRecordingAvailable) {
- return;
- }
+ this.props.dispatch(setFollowMeRecorderExclusive(value));
+ }
- if (selectedRecordingService === RECORDING_TYPES.LOCAL) {
- // Deselect — lets the participant start transcription without local recording.
- onRecordAudioAndVideoChange(false);
- onChange('');
+ /**
+ * Whether the recorder follow me option is checked.
+ *
+ * @returns {boolean}
+ */
+ _isFollowMeRecorderChecked() {
+ const { _followMeRecorderActive, _followMeRecorderEnabled } = this.props;
- return;
- }
+ return _followMeRecorderEnabled && !_followMeRecorderActive;
+ }
+
+ /**
+ * Whether the recorder follow me option is disabled: another moderator
+ * has one of the follow me modes active, or a recording is already in
+ * progress — the recorder cannot pick up the change after it started.
+ *
+ * @returns {boolean}
+ */
+ _isFollowMeRecorderDisabled() {
+ const { _followMeActive, _followMeRecorderActive, recordingRunning } = this.props;
- onRecordAudioAndVideoChange(true);
- onChange(RECORDING_TYPES.LOCAL);
+ return _followMeActive || _followMeRecorderActive || recordingRunning;
}
/**
@@ -499,12 +638,19 @@ export function mapStateToProps(state: IReduxState) {
const _localRecordingAvailable = !localRecording?.disable && supportsLocalRecording();
const canManageRecordingOrTranscription
= isLocalParticipantModerator(state) || hasRecordingOrTranscriptionFeature(state);
+ const { followMeRecorderEnabled } = state['features/follow-me'];
+ const subtitlesLanguage = state['features/subtitles']._language?.replace('translation-languages:', '');
return {
..._abstractMapStateToProps(state),
isVpaas: isVpaasMeeting(state),
+ _availableLanguages: getAvailableSubtitlesLanguages(state, subtitlesLanguage)
+ .map((lang: string) => `translation-languages:${lang}`),
_canManageRecordingOrTranscription: canManageRecordingOrTranscription,
_canStartTranscribing: canAddTranscriber(state),
+ _followMeActive: isFollowMeActive(state),
+ _followMeRecorderActive: isFollowMeRecorderActive(state),
+ _followMeRecorderEnabled: Boolean(followMeRecorderEnabled),
_isLiveStreamRunning: isLiveStreamingRunning(state),
_hideStorageWarning: Boolean(recordingService?.hideStorageWarning),
_isModerator: isLocalParticipantModerator(state),
diff --git a/react/features/recording/components/Recording/native/RecordingOptionRow.tsx b/react/features/recording/components/Recording/native/RecordingOptionRow.tsx
new file mode 100644
index 0000000000..6e2b586022
--- /dev/null
+++ b/react/features/recording/components/Recording/native/RecordingOptionRow.tsx
@@ -0,0 +1,91 @@
+import React, { useCallback } from 'react';
+import { TouchableOpacity, View, ViewStyle } from 'react-native';
+import { Text } from 'react-native-paper';
+
+import Icon from '../../../../base/icons/components/Icon';
+import { IconCheck } from '../../../../base/icons/svg';
+import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
+
+interface IProps {
+
+ /**
+ * Whether the row can be selected.
+ */
+ disabled?: boolean;
+
+ /**
+ * The already translated label of the row.
+ */
+ label: string;
+
+ /**
+ * Callback invoked with the row value on selection.
+ */
+ onSelect: (value: string) => void;
+
+ /**
+ * Whether the row is the selected one.
+ */
+ selected: boolean;
+
+ /**
+ * The value the row represents.
+ */
+ value: string;
+}
+
+const styles = {
+ row: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ paddingVertical: BaseTheme.spacing[2]
+ } as ViewStyle,
+
+ iconWrapper: {
+ alignItems: 'center',
+ width: BaseTheme.spacing[5]
+ } as ViewStyle,
+
+ label: {
+ color: BaseTheme.palette.text01
+ },
+
+ labelSelected: {
+ fontWeight: 'bold' as const
+ },
+
+ disabled: {
+ opacity: 0.5
+ }
+};
+
+/**
+ * A selectable row of the inline pickers (storage service, transcription
+ * language) used by the native recording dialog.
+ *
+ * @returns {JSX.Element}
+ */
+const RecordingOptionRow = ({ disabled, label, onSelect, selected, value }: IProps) => {
+ const onPress = useCallback(() => onSelect(value), [ onSelect, value ]);
+
+ return (
+ <TouchableOpacity
+ accessibilityLabel = { label }
+ accessibilityRole = 'button'
+ accessibilityState = {{ disabled: Boolean(disabled), selected }}
+ disabled = { disabled }
+ onPress = { onPress }
+ style = { [ styles.row, disabled && styles.disabled ] }>
+ <View style = { styles.iconWrapper }>
+ { selected && <Icon
+ size = { 20 }
+ src = { IconCheck } /> }
+ </View>
+ <Text style = { [ styles.label, selected && styles.labelSelected ] }>
+ { label }
+ </Text>
+ </TouchableOpacity>
+ );
+};
+
+export default RecordingOptionRow;
diff --git a/react/features/recording/components/Recording/native/RecordingTranscriptionDialog.tsx b/react/features/recording/components/Recording/native/RecordingTranscriptionDialog.tsx
index b64270071a..a1bf6861d1 100644
--- a/react/features/recording/components/Recording/native/RecordingTranscriptionDialog.tsx
+++ b/react/features/recording/components/Recording/native/RecordingTranscriptionDialog.tsx
@@ -1,16 +1,14 @@
import React from 'react';
+import { ScrollView } from 'react-native';
import { connect } from 'react-redux';
+import { IReduxState } from '../../../../app/types';
import { translate } from '../../../../base/i18n/functions';
import JitsiScreen from '../../../../base/modal/components/JitsiScreen';
-import HeaderNavigationButton
- from '../../../../mobile/navigation/components/HeaderNavigationButton';
import { goBack } from
'../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-import { RECORDING_TYPES } from '../../../constants';
import AbstractStartRecordingDialog, {
- IProps,
- mapStateToProps
+ mapStateToProps as abstractMapStateToProps
} from '../AbstractStartRecordingDialog';
import styles from '../styles.native';
@@ -19,102 +17,21 @@ import StartRecordingDialogContent from './StartRecordingDialogContent';
/**
* React Component for managing a recording/transcription session on native.
- * Handles both starting (when nothing is active) and managing toggles
- * (when a session is already running).
+ * Each section (audio & video recording, transcription) has its own
+ * start/stop button which applies the action immediately and navigates back.
*
* @augments Component
*/
class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
/**
- * Constructor of the component.
+ * Dismisses the screen by navigating back.
*
* @inheritdoc
- */
- constructor(props: IProps) {
- super(props);
-
- this._onStartPress = this._onStartPress.bind(this);
- }
-
- /**
- * Implements React's {@link Component#componentDidMount()}.
- *
- * @inheritdoc
- * @returns {void}
- */
- override componentDidMount() {
- super.componentDidMount();
-
- this._updateNavigationOptions();
- }
-
- /**
- * Implements React's {@link Component#componentDidUpdate()}.
- *
- * @inheritdoc
- * @returns {void}
- */
- override componentDidUpdate(prevProps: IProps) {
- super.componentDidUpdate(prevProps);
-
- this._updateNavigationOptions();
- }
-
- /**
- * Sets the header right button based on whether a session is active.
- *
- * @returns {void}
- */
- _updateNavigationOptions() {
- const { _localRecording, _recordingRunning, _transcriptionRunning, navigation, t } = this.props;
- const servicesRunning = Boolean(_recordingRunning || _transcriptionRunning || _localRecording);
-
- navigation.setOptions({
- // eslint-disable-next-line react/no-multi-comp
- headerRight: () => (
- <HeaderNavigationButton
- disabled = { servicesRunning ? !this._isChanged() : this.isStartRecordingDisabled() }
- label = { servicesRunning ? t('dialog.applyChanges') : t('dialog.start') }
- onPress = { this._onStartPress }
- twoActions = { true } />
- )
- });
- }
-
- /**
- * Applies changes and navigates back.
- *
* @returns {void}
*/
- _onStartPress() {
- this._onSubmit() && goBack();
- }
-
- /**
- * Returns true when the start button should be disabled (no-session case).
- *
- * @returns {boolean}
- */
- isStartRecordingDisabled() {
- const {
- isTokenValid,
- selectedRecordingService,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription
- } = this.state;
-
- if (!shouldRecordAudioAndVideo && !shouldRecordTranscription) {
- return true;
- }
-
- if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) {
- return false;
- } else if (selectedRecordingService === RECORDING_TYPES.DROPBOX) {
- return !isTokenValid;
- }
-
- return true;
+ override _dismiss() {
+ goBack();
}
/**
@@ -127,46 +44,74 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
_fileRecordingsServiceEnabled,
_fileRecordingsServiceSharingEnabled,
_recordingRunning,
- _transcriptionRunning
+ _transcriptionRunning,
+ recordAudioAndVideo
} = this.props;
- const servicesRunning = Boolean(_recordingRunning || _transcriptionRunning);
const {
isTokenValid,
isValidating,
localRecordingOnlySelf,
+ selectedLanguage,
selectedRecordingService,
sharingEnabled,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
spaceLeft,
userName
} = this.state;
return (
<JitsiScreen style = { styles.startRecodingContainer }>
- <StartRecordingDialogContent
- fileRecordingsServiceEnabled = { _fileRecordingsServiceEnabled }
- fileRecordingsServiceSharingEnabled = { _fileRecordingsServiceSharingEnabled }
- integrationsEnabled = { this._areIntegrationsEnabled() }
- isTokenValid = { isTokenValid }
- isValidating = { isValidating }
- localRecordingOnlySelf = { localRecordingOnlySelf }
- onChange = { this._onSelectedRecordingServiceChanged }
- onLocalRecordingSelfChange = { this._onLocalRecordingSelfChange }
- onRecordAudioAndVideoChange = { this._onRecordAudioAndVideoChange }
- onSharingSettingChanged = { this._onSharingSettingChanged }
- onTranscriptionChange = { this._onTranscriptionChange }
- recordingRunning = { Boolean(_recordingRunning) }
- selectedRecordingService = { selectedRecordingService }
- servicesRunning = { servicesRunning }
- sharingSetting = { sharingEnabled }
- shouldRecordAudioAndVideo = { shouldRecordAudioAndVideo }
- shouldRecordTranscription = { shouldRecordTranscription }
- spaceLeft = { spaceLeft }
- userName = { userName } />
+ <ScrollView>
+ <StartRecordingDialogContent
+ fileRecordingsServiceEnabled = { _fileRecordingsServiceEnabled }
+ fileRecordingsServiceSharingEnabled = { _fileRecordingsServiceSharingEnabled }
+ integrationsEnabled = { this._areIntegrationsEnabled() }
+ isTokenValid = { isTokenValid }
+ isValidating = { isValidating }
+ localRecordingOnlySelf = { localRecordingOnlySelf }
+ onLocalRecordingSelfChange = { this._onLocalRecordingSelfChange }
+ onRecordingServiceChange = { this._onSelectedRecordingServiceChanged }
+ onSharingSettingChanged = { this._onSharingSettingChanged }
+ onStartBoth = { this._onStartBothPress }
+ onStartRecording = { this._onStartRecordingPress }
+ onStartTranscription = { this._onStartTranscriptionPress }
+ onStopBoth = { this._onStopBothPress }
+ onStopRecording = { this._onStopRecordingPress }
+ onStopTranscription = { this._onStopTranscriptionPress }
+ onSubtitlesLanguageChange = { this._onSubtitlesLanguageChanged }
+ recordAudioAndVideo = { recordAudioAndVideo }
+ recordingRunning = { Boolean(_recordingRunning) }
+ selectedLanguage = { selectedLanguage }
+ selectedRecordingService = { selectedRecordingService }
+ sharingSetting = { sharingEnabled }
+ spaceLeft = { spaceLeft }
+ startRecordingDisabled = { this._isStartRecordingDisabled() }
+ transcriptionRunning = { Boolean(_transcriptionRunning) }
+ userName = { userName } />
+ </ScrollView>
</JitsiScreen>
);
}
}
+/**
+ * Maps redux state to component props, bridging the navigation route params
+ * (native-only) into the shared {@code recordAudioAndVideo} prop.
+ *
+ * @param {Object} state - Redux state.
+ * @param {any} ownProps - Component's own props. Kept as `any`: this component is registered
+ * directly as a react-navigation Screen (see ConferenceNavigationContainer.tsx), whose generic
+ * `route`/`navigation` prop types don't compose with a narrower own-props type here without
+ * modeling the whole navigation ParamList, which AbstractStartRecordingDialog's own
+ * mapStateToProps(_ownProps: any) already opts out of for the same reason.
+ * @returns {Object}
+ */
+function mapStateToProps(state: IReduxState, ownProps: any) {
+ return {
+ ...abstractMapStateToProps(state, {
+ ...ownProps,
+ recordAudioAndVideo: ownProps.recordAudioAndVideo ?? ownProps.route?.params?.recordAudioAndVideo
+ })
+ };
+}
+
export default translate(connect(mapStateToProps)(RecordingTranscriptionDialog));
diff --git a/react/features/recording/components/Recording/native/StartRecordingDialog.tsx b/react/features/recording/components/Recording/native/StartRecordingDialog.tsx
deleted file mode 100644
index fc5e41b5cd..0000000000
--- a/react/features/recording/components/Recording/native/StartRecordingDialog.tsx
+++ /dev/null
@@ -1,188 +0,0 @@
-import React from 'react';
-import { connect } from 'react-redux';
-
-import { IReduxState } from '../../../../app/types';
-import { translate } from '../../../../base/i18n/functions.native';
-import JitsiScreen from '../../../../base/modal/components/JitsiScreen';
-import HeaderNavigationButton
- from '../../../../mobile/navigation/components/HeaderNavigationButton';
-import { goBack } from
- '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
-import { RECORDING_TYPES } from '../../../constants';
-import AbstractStartRecordingDialog, {
- IProps,
- mapStateToProps as abstractMapStateToProps
-} from '../AbstractStartRecordingDialog';
-import styles from '../styles.native';
-
-import StartRecordingDialogContent from './StartRecordingDialogContent';
-
-
-/**
- * React Component for getting confirmation to start a file recording session in
- * progress.
- *
- * @augments Component
- */
-class StartRecordingDialog extends AbstractStartRecordingDialog {
-
- /**
- * Constructor of the component.
- *
- * @inheritdoc
- */
- constructor(props: IProps) {
- super(props);
-
- this._onStartPress = this._onStartPress.bind(this);
- }
-
- /**
- * Implements React's {@link Component#componentDidMount()}. Invoked
- * immediately after this component is mounted.
- *
- * @inheritdoc
- * @returns {void}
- */
- override componentDidMount() {
- super.componentDidMount();
-
- const { navigation, t } = this.props;
-
- navigation.setOptions({
- headerRight: () => (
- <HeaderNavigationButton
- disabled = { this.isStartRecordingDisabled() }
- label = { t('dialog.start') }
- onPress = { this._onStartPress }
- twoActions = { true } />
- )
- });
- }
-
- /**
- * Implements React's {@link Component#componentDidUpdate()}. Invoked
- * immediately after this component is updated.
- *
- * @inheritdoc
- * @returns {void}
- */
- override componentDidUpdate(prevProps: IProps) {
- super.componentDidUpdate(prevProps);
-
- const { navigation, t } = this.props;
-
- navigation.setOptions({
- // eslint-disable-next-line react/no-multi-comp
- headerRight: () => (
- <HeaderNavigationButton
- disabled = { this.isStartRecordingDisabled() }
- label = { t('dialog.start') }
- onPress = { this._onStartPress }
- twoActions = { true } />
- )
- });
- }
-
- /**
- * Starts recording session and goes back to the previous screen.
- *
- * @returns {void}
- */
- _onStartPress() {
- this._onSubmit() && goBack();
- }
-
- /**
- * Disables start recording button.
- *
- * @returns {boolean}
- */
- isStartRecordingDisabled() {
- const {
- isTokenValid,
- selectedRecordingService,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription
- } = this.state;
-
- if (!shouldRecordAudioAndVideo && !shouldRecordTranscription) {
- return true;
- }
-
- // Start button is disabled if recording service is only shown;
- // When validating dropbox token, if that is not enabled, we either always
- // show the start button or, if just dropbox is enabled, start button
- // is available when there is token.
- if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) {
- return false;
- } else if (selectedRecordingService === RECORDING_TYPES.DROPBOX) {
- return !isTokenValid;
- }
-
- return true;
-
- }
-
- /**
- * Implements React's {@link Component#render()}.
- *
- * @inheritdoc
- */
- override render() {
- const {
- isTokenValid,
- isValidating,
- selectedRecordingService,
- sharingEnabled,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
- spaceLeft,
- userName
- } = this.state;
- const {
- _fileRecordingsServiceEnabled,
- _fileRecordingsServiceSharingEnabled
- } = this.props;
-
- return (
- <JitsiScreen style = { styles.startRecodingContainer }>
- <StartRecordingDialogContent
- fileRecordingsServiceEnabled = { _fileRecordingsServiceEnabled }
- fileRecordingsServiceSharingEnabled = { _fileRecordingsServiceSharingEnabled }
- integrationsEnabled = { this._areIntegrationsEnabled() }
- isTokenValid = { isTokenValid }
- isValidating = { isValidating }
- onChange = { this._onSelectedRecordingServiceChanged }
- onRecordAudioAndVideoChange = { this._onRecordAudioAndVideoChange }
- onSharingSettingChanged = { this._onSharingSettingChanged }
- onTranscriptionChange = { this._onTranscriptionChange }
- selectedRecordingService = { selectedRecordingService }
- sharingSetting = { sharingEnabled }
- shouldRecordAudioAndVideo = { shouldRecordAudioAndVideo }
- shouldRecordTranscription = { shouldRecordTranscription }
- spaceLeft = { spaceLeft }
- userName = { userName } />
- </JitsiScreen>
- );
- }
-}
-
-/**
- * Maps redux state to component props, bridging the navigation route params
- * (native-only) into the shared {@code recordAudioAndVideo} prop.
- *
- * @param {Object} state - Redux state.
- * @param {any} ownProps - Component's own props.
- * @returns {Object}
- */
-function mapStateToProps(state: IReduxState, ownProps: any) {
- return {
- ...abstractMapStateToProps(state, {
- ...ownProps,
- recordAudioAndVideo: ownProps.recordAudioAndVideo ?? ownProps.route?.params?.recordAudioAndVideo
- })
- };
-}
-
-export default translate(connect(mapStateToProps)(StartRecordingDialog));
diff --git a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
index 462948d565..eb96c6fc30 100644
--- a/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
+++ b/react/features/recording/components/Recording/native/StartRecordingDialogContent.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Image, View } from 'react-native';
+import { Image, TouchableOpacity, View } from 'react-native';
import { Text } from 'react-native-paper';
import { connect } from 'react-redux';
@@ -10,76 +10,44 @@ import LoadingIndicator from '../../../../base/react/components/native/LoadingIn
import Button from '../../../../base/ui/components/native/Button';
import Switch from '../../../../base/ui/components/native/Switch';
import { BUTTON_TYPES } from '../../../../base/ui/constants.native';
+import LanguageListItem from '../../../../subtitles/components/native/LanguageListItem';
import { RECORDING_TYPES } from '../../../constants';
import { getRecordingDurationEstimation } from '../../../functions';
-import AbstractStartRecordingDialogContent, { mapStateToProps } from '../AbstractStartRecordingDialogContent';
+import AbstractStartRecordingDialogContent, { IProps, mapStateToProps } from '../AbstractStartRecordingDialogContent';
import {
- DROPBOX_LOGO,
- ICON_CLOUD,
ICON_INFO,
ICON_USERS
} from '../styles.native';
+import RecordingOptionRow from './RecordingOptionRow';
+
/**
- * The start recording dialog content for the mobile application.
+ * The recording & transcription dialog content for the mobile application.
*/
class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
/**
- * Renders the two service toggles (recording + transcription) directly,
- * without the collapsible wrapper — used in manage mode when a session
- * is already active.
+ * Initializes a new {@code StartRecordingDialogContent} instance.
*
- * @returns {React$Component}
+ * @inheritdoc
*/
- _renderSessionToggles() {
- const {
- _dialogStyles,
- _renderRecording,
- _styles: styles,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
- t
- } = this.props;
+ constructor(props: IProps) {
+ super(props);
- return (
- <>
- { _renderRecording && (
- <View
- key = 'audioVideoSetting'
- style = { styles.header }>
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.recordAudioAndVideo') }
- </Text>
- <Switch
- checked = { shouldRecordAudioAndVideo }
- onChange = { this._onRecordAudioAndVideoSwitchChange }
- style = { styles.switch } />
- </View>
- ) }
- { this._canStartTranscribing() && (
- <View
- key = 'transcriptionSetting'
- style = { styles.header }>
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.recordTranscription') }
- </Text>
- <Switch
- checked = { shouldRecordTranscription }
- onChange = { this._onTranscriptionSwitchChange }
- style = { styles.switch } />
- </View>
- ) }
- </>
- );
+ this._onLanguageSelected = this._onLanguageSelected.bind(this);
+ }
+
+ /**
+ * Handles a language selection from the inline language list: applies it
+ * and collapses the list.
+ *
+ * @param {string} language - The selected ("translation-languages:"
+ * prefixed) language.
+ * @returns {void}
+ */
+ _onLanguageSelected(language: string) {
+ this.props.onSubtitlesLanguageChange(language);
+ this.setState({ showLanguageList: false });
}
/**
@@ -89,193 +57,219 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
* @returns {React$Component}
*/
override render() {
- const { _styles: styles, servicesRunning } = this.props;
-
- if (servicesRunning) {
- return (
- <View style = { styles.container }>
- { this._renderSessionToggles() }
- </View>
- );
- }
+ const { _styles: styles } = this.props;
return (
<View style = { styles.container }>
- { this._renderNoIntegrationsContent() }
- { this._renderFileSharingContent() }
- { this._renderUploadToTheCloudInfo() }
- { this._renderIntegrationsContent() }
- { this._renderAdvancedOptions() }
+ { this._renderRecordingSection() }
+ { this._renderTranscriptionSection() }
+ { this._renderFooter() }
</View>
);
}
/**
- * Renders the save transcription switch.
+ * Renders a section header: title and the start/stop button of the
+ * section's service.
*
+ * @param {Object} options - Rendering options.
* @returns {React$Component}
*/
- _renderAdvancedOptions() {
- const { selectedRecordingService } = this.props;
+ _renderSectionHeader({ onButtonPress, running, startDisabled, startLabelKey, stopLabelKey, titleKey }: {
+ onButtonPress: () => void;
+ running: boolean;
+ startDisabled?: boolean;
+ startLabelKey: string;
+ stopLabelKey: string;
+ titleKey: string;
+ }) {
+ const { _dialogStyles, _styles: styles, t } = this.props;
- if (selectedRecordingService !== RECORDING_TYPES.JITSI_REC_SERVICE || !this._canStartTranscribing()) {
- return null;
- }
+ return (
+ <View style = { styles.header }>
+ <Text
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.title
+ }}>
+ { t(titleKey) }
+ </Text>
+ <Button
+ accessibilityLabel = { running ? stopLabelKey : startLabelKey }
+ disabled = { !running && startDisabled }
+ labelKey = { running ? 'dialog.stop' : 'dialog.start' }
+ onClick = { onButtonPress }
+ type = { running ? BUTTON_TYPES.DESTRUCTIVE : BUTTON_TYPES.PRIMARY } />
+ </View>
+ );
+ }
- const { showAdvancedOptions } = this.state;
- const {
- _dialogStyles,
- _styles: styles,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
- t
- } = this.props;
+ /**
+ * Renders the accordion wrapping a section's options: a header with the
+ * options title, a one line summary of the current choices and a chevron,
+ * followed by the options themselves when expanded.
+ *
+ * @param {Object} options - Rendering options.
+ * @returns {React$Component}
+ */
+ _renderAccordion({ body, expanded, onToggle, summary, titleKey }: {
+ body: React.ReactNode;
+ expanded: boolean;
+ onToggle: () => void;
+ summary: string;
+ titleKey: string;
+ }) {
+ const { _styles: styles, t } = this.props;
return (
- <>
- <View
- style = { styles.header }>
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.showAdvancedOptions') }
- </Text>
- <Icon
- ariaPressed = { showAdvancedOptions }
- onClick = { this._onToggleShowOptions }
- role = 'button'
- size = { 24 }
- src = { showAdvancedOptions ? IconArrowDown : IconArrowRight } />
- </View>
- {showAdvancedOptions && (
- <>
- <View
- key = 'transcriptionSetting'
- style = { styles.header }>
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.recordTranscription') }
- </Text>
- <Switch
- checked = { shouldRecordTranscription }
- onChange = { this._onTranscriptionSwitchChange }
- style = { styles.switch } />
- </View>
- <View
- key = 'audioVideoSetting'
- style = { styles.header }>
+ <View style = { styles.accordion }>
+ <TouchableOpacity
+ accessibilityLabel = { t(titleKey) }
+ accessibilityRole = 'button'
+ accessibilityState = {{ expanded }}
+ onPress = { onToggle }
+ style = { styles.accordionHeader }>
+ <View style = { styles.accordionText }>
+ <Text style = { styles.accordionTitle }>
+ { t(titleKey) }
+ </Text>
+ { !expanded && (
<Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.recordAudioAndVideo') }
+ numberOfLines = { 1 }
+ style = { styles.accordionSummary }>
+ { summary }
</Text>
- <Switch
- checked = { shouldRecordAudioAndVideo }
- onChange = { this._onRecordAudioAndVideoSwitchChange }
- style = { styles.switch } />
- </View>
- </>
- )}
- </>
+ ) }
+ </View>
+ <Icon
+ size = { 18 }
+ src = { IconArrowDown }
+ style = { expanded ? styles.accordionChevronOpen : undefined } />
+ </TouchableOpacity>
+ { expanded && (
+ <View style = { styles.accordionBody }>
+ { body }
+ </View>
+ ) }
+ </View>
);
}
/**
- * Renders the content in case no integrations were enabled.
+ * Renders the audio & video recording section.
*
* @returns {React$Component}
*/
- _renderNoIntegrationsContent() {
+ _renderRecordingSection() {
+ const recordingServiceOptions = this._getRecordingServiceOptions();
+
+ if (!this._shouldRenderRecordingSection(recordingServiceOptions)) {
+ return null;
+ }
+
const {
_dialogStyles,
_styles: styles,
- integrationsEnabled,
isValidating,
+ onStartRecording,
+ onStopRecording,
+ recordingRunning,
selectedRecordingService,
- shouldRecordAudioAndVideo,
+ startRecordingDisabled,
t
} = this.props;
-
- if (!this._shouldRenderNoIntegrationsContent()) {
- return null;
- }
-
- const switchContent
- = integrationsEnabled
- ? (
- <Switch
- checked = { selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE }
- disabled = { isValidating || !shouldRecordAudioAndVideo }
- onChange = { this._onRecordingServiceSwitchChange }
- style = { styles.switch } />
- ) : null;
+ const { showRecordingOptions } = this.state;
return (
- <View
- key = 'noIntegrationSetting'
- style = { styles.header }>
- <Image
- source = { ICON_CLOUD }
- style = { styles.recordingIcon } />
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.serviceDescription') }
- </Text>
- { switchContent }
+ <View style = { styles.section }>
+ { this._renderSectionHeader({
+ onButtonPress: recordingRunning ? onStopRecording : onStartRecording,
+ running: recordingRunning,
+ startDisabled: startRecordingDisabled || isValidating,
+ startLabelKey: 'dialog.startRecording',
+ stopLabelKey: 'dialog.stopRecording',
+ titleKey: 'recording.recordAudioAndVideo'
+ }) }
+ { this._renderAccordion({
+ body: (
+ <>
+ <Text
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.pickerLabel
+ }}>
+ { t('recording.storageLocation') }
+ </Text>
+ { recordingServiceOptions.map(service => (
+ <RecordingOptionRow
+ disabled = { recordingRunning || isValidating }
+ key = { service }
+ label = { t(this._getServiceLabelKey(service)) }
+ onSelect = { this._onRecordingServiceChange }
+ selected = { selectedRecordingService === service }
+ value = { service } />
+ )) }
+ { selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
+ && this._renderJitsiServiceOptions() }
+ { selectedRecordingService === RECORDING_TYPES.DROPBOX
+ && this._renderDropboxOptions() }
+ { this._renderFollowMeRecorder() }
+ </>
+ ),
+ expanded: showRecordingOptions,
+ onToggle: this._onToggleRecordingOptions,
+
+ // Only rendered by _renderAccordion while collapsed — skip computing it
+ // (and its nested t() calls) while the section is expanded.
+ summary: showRecordingOptions ? '' : this._getRecordingSummary(),
+ titleKey: 'recording.recordingOptions'
+ }) }
</View>
);
}
/**
- * Renders the file recording service sharing options, if enabled.
+ * Renders the options of the Jitsi recording service: the recording link
+ * sharing switch and the vpaas storage warning.
*
* @returns {React$Component}
*/
- _renderFileSharingContent() {
- if (!this._shouldRenderFileSharingContent()) {
- return null;
- }
-
+ _renderJitsiServiceOptions() {
const {
_dialogStyles,
_styles: styles,
isValidating,
onSharingSettingChanged,
+ recordingRunning,
sharingSetting,
- shouldRecordAudioAndVideo,
t
} = this.props;
return (
- <View
- key = 'fileSharingSetting'
- style = { styles.header }>
- <Image
- source = { ICON_USERS }
- style = { styles.recordingIcon } />
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.fileSharingdescription') }
- </Text>
- <Switch
- checked = { sharingSetting }
- disabled = { isValidating || !shouldRecordAudioAndVideo }
- onChange = { onSharingSettingChanged }
- style = { styles.switch } />
- </View>
+ <>
+ { this._shouldRenderFileSharingContent() && (
+ <View
+ key = 'fileSharingSetting'
+ style = { styles.headerNested }>
+ <Image
+ source = { ICON_USERS }
+ style = { styles.recordingIcon } />
+ <Text
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.optionLabel
+ }}>
+ { t('recording.fileSharingdescription') }
+ </Text>
+ <Switch
+ checked = { sharingSetting }
+ disabled = { isValidating || recordingRunning }
+ onChange = { onSharingSettingChanged }
+ style = { styles.switch } />
+ </View>
+ ) }
+ { this._renderUploadToTheCloudInfo() }
+ </>
);
}
@@ -290,11 +284,10 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
_hideStorageWarning,
_styles: styles,
isVpaas,
- selectedRecordingService,
t
} = this.props;
- if (!(isVpaas && selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) || _hideStorageWarning) {
+ if (!isVpaas || _hideStorageWarning) {
return null;
}
@@ -317,129 +310,220 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
}
/**
- * Renders a spinner component.
+ * Renders the Dropbox account area: sign in button, or account info plus
+ * sign out button once authorized.
*
* @returns {React$Component}
*/
- _renderSpinner() {
+ _renderDropboxOptions() {
+ const { _dialogStyles, _styles: styles, isTokenValid, isValidating, spaceLeft, t, userName } = this.props;
+
+ if (isValidating) {
+ return (
+ <View style = { styles.loggedIn }>
+ <LoadingIndicator size = 'small' />
+ </View>
+ );
+ }
+
+ if (!isTokenValid) {
+ return (
+ <View style = { styles.headerNested }>
+ <Text
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.optionLabel
+ }}>
+ { t('recording.dropboxSignInPrompt') }
+ </Text>
+ <Button
+ accessibilityLabel = 'recording.signIn'
+ labelKey = 'recording.signIn'
+ onClick = { this._onSignIn }
+ type = { BUTTON_TYPES.PRIMARY } />
+ </View>
+ );
+ }
+
+ const duration = getRecordingDurationEstimation(spaceLeft);
+
return (
- <LoadingIndicator
- size = 'small' />
+ <View style = { styles.headerNested }>
+ <View style = { styles.loggedInInfo }>
+ <Text
+ style = { [
+ styles.text,
+ styles.recordingText
+ ] }>
+ { t('recording.loggedIn', { userName }) }
+ </Text>
+ <Text
+ style = { [
+ styles.text,
+ styles.recordingText
+ ] }>
+ {
+ t('recording.availableSpace', {
+ spaceLeft,
+ duration
+ })
+ }
+ </Text>
+ </View>
+ <Button
+ accessibilityLabel = 'recording.signOut'
+ labelKey = 'recording.signOut'
+ onClick = { this._onSignOut }
+ type = { BUTTON_TYPES.SECONDARY } />
+ </View>
);
}
/**
- * Renders the screen with the account information of a logged in user.
+ * Renders the recorder follow me switch for cloud based recordings.
*
* @returns {React$Component}
*/
- _renderSignOut() {
- const { _styles: styles, spaceLeft, t, userName } = this.props;
- const duration = getRecordingDurationEstimation(spaceLeft);
+ _renderFollowMeRecorder() {
+ if (!this._shouldRenderFollowMeRecorder()) {
+ return null;
+ }
+
+ const { _dialogStyles, _styles: styles, t } = this.props;
return (
- <View
- style = { styles.loggedIn }>
+ <View style = { styles.headerNested }>
<Text
- style = { [
- styles.text,
- styles.recordingText
- ] }>
- { t('recording.loggedIn', { userName }) }
- </Text>
- <Text
- style = { [
- styles.text,
- styles.recordingText
- ] }>
- {
- t('recording.availableSpace', {
- spaceLeft,
- duration
- })
- }
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.optionLabel
+ }}>
+ { t('settings.followMeRecorder') }
</Text>
+ <Switch
+ checked = { this._isFollowMeRecorderChecked() }
+ disabled = { this._isFollowMeRecorderDisabled() }
+ onChange = { this._onFollowMeRecorderChange }
+ style = { styles.switch } />
</View>
);
}
/**
- * Renders the content in case integrations were enabled.
+ * Renders the transcription section with the inline language picker.
*
- * @protected
* @returns {React$Component}
*/
- _renderIntegrationsContent() {
- if (!this._shouldRenderIntegrationsContent()) {
+ _renderTranscriptionSection() {
+ if (!this._shouldRenderTranscriptionSection()) {
return null;
}
const {
+ _availableLanguages,
_dialogStyles,
_styles: styles,
- fileRecordingsServiceEnabled,
- isTokenValid,
- isValidating,
- selectedRecordingService,
- shouldRecordAudioAndVideo,
- t
+ onStartTranscription,
+ onStopTranscription,
+ selectedLanguage,
+ t,
+ transcriptionRunning
} = this.props;
+ const { showLanguageList, showTranscriptionOptions } = this.state;
- let content = null;
- let switchContent = null;
-
- if (isValidating) {
- content = this._renderSpinner();
- switchContent = <View />;
- } else if (isTokenValid) {
- content = this._renderSignOut();
- switchContent = (
- <Button
- accessibilityLabel = 'recording.signOut'
- labelKey = 'recording.signOut'
- onClick = { this._onSignOut }
- type = { BUTTON_TYPES.SECONDARY } />
- );
+ return (
+ <View style = { styles.section }>
+ { this._renderSectionHeader({
+ onButtonPress: transcriptionRunning ? onStopTranscription : onStartTranscription,
+ running: transcriptionRunning,
+ startLabelKey: 'dialog.startTranscription',
+ stopLabelKey: 'dialog.stopTranscription',
+ titleKey: 'recording.recordTranscription'
+ }) }
+ { this._renderAccordion({
+ body: (
+ <>
+ <View style = { styles.headerNested }>
+ <Text
+ style = {{
+ ..._dialogStyles.text,
+ ...styles.pickerLabel
+ }}>
+ { `${t('recording.transcriptionLanguage')}: ${t(selectedLanguage ?? '')}` }
+ </Text>
+ <Icon
+ ariaPressed = { showLanguageList }
+ onClick = { transcriptionRunning ? undefined : this._onToggleLanguageList }
+ role = 'button'
+ size = { 24 }
+ src = { showLanguageList ? IconArrowDown : IconArrowRight } />
+ </View>
+ { showLanguageList && !transcriptionRunning
+ && _availableLanguages.map((language: string) => (
+ <LanguageListItem
+ key = { language }
+ lang = { language }
+ onLanguageSelected = { this._onLanguageSelected }
+ selected = { selectedLanguage === language } />
+ )) }
+ </>
+ ),
+ expanded: showTranscriptionOptions,
+ onToggle: this._onToggleTranscriptionOptions,
+
+ // Only rendered by _renderAccordion while collapsed — skip computing it while
+ // the section is expanded.
+ summary: showTranscriptionOptions ? '' : this._getTranscriptionSummary(),
+ titleKey: 'recording.transcriptionOptions'
+ }) }
+ </View>
+ );
+ }
- } else {
- switchContent = (
- <Button
- accessibilityLabel = 'recording.signIn'
- labelKey = 'recording.signIn'
- onClick = { this._onSignIn }
- type = { BUTTON_TYPES.PRIMARY } />
- );
+ /**
+ * Renders the footer buttons acting on both services at once. When only
+ * one service is running both buttons are shown: stop both stops the
+ * running one, start both starts the missing one.
+ *
+ * @returns {React$Component}
+ */
+ _renderFooter() {
+ if (!this._shouldRenderFooter()) {
+ return null;
}
- if (fileRecordingsServiceEnabled) {
- switchContent = (
- <Switch
- checked = { selectedRecordingService === RECORDING_TYPES.DROPBOX }
- disabled = { isValidating || !shouldRecordAudioAndVideo }
- onChange = { this._onDropboxSwitchChange }
- style = { styles.switch } />
- );
- }
+ const {
+ _styles: styles,
+ isValidating,
+ onStartBoth,
+ onStopBoth,
+ recordingRunning,
+ startRecordingDisabled,
+ transcriptionRunning
+ } = this.props;
+ const showStopBoth = recordingRunning || transcriptionRunning;
+ const showStartBoth = !recordingRunning || !transcriptionRunning;
+ const startBothDisabled = !recordingRunning && (startRecordingDisabled || isValidating);
return (
- <View>
- <View
- style = { styles.headerIntegrations }>
- <Image
- source = { DROPBOX_LOGO }
- style = { styles.recordingIcon } />
- <Text
- style = {{
- ..._dialogStyles.text,
- ...styles.title
- }}>
- { t('recording.authDropboxText') }
- </Text>
- { switchContent }
- </View>
- <View>
- { content }
- </View>
+ <View style = { styles.footer }>
+ { showStopBoth && (
+ <Button
+ accessibilityLabel = 'dialog.stopBoth'
+ labelKey = 'dialog.stopBoth'
+ onClick = { onStopBoth }
+ style = { styles.footerButton }
+ type = { BUTTON_TYPES.DESTRUCTIVE } />
+ ) }
+ { showStartBoth && (
+ <Button
+ accessibilityLabel = 'dialog.startBoth'
+ disabled = { startBothDisabled }
+ labelKey = 'dialog.startBoth'
+ onClick = { onStartBoth }
+ style = { styles.footerButton }
+ type = { BUTTON_TYPES.PRIMARY } />
+ ) }
</View>
);
}
diff --git a/react/features/recording/components/Recording/styles.native.ts b/react/features/recording/components/Recording/styles.native.ts
index 1b36e779c1..8d3cdd6195 100644
--- a/react/features/recording/components/Recording/styles.native.ts
+++ b/react/features/recording/components/Recording/styles.native.ts
@@ -4,12 +4,8 @@ import { BoxModel } from '../../../base/styles/components/styles/BoxModel';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
/* eslint-disable @typescript-eslint/no-var-requires */
-export const DROPBOX_LOGO = require('../../../../../images/dropboxLogo_square.png');
-export const ICON_CLOUD = require('../../../../../images/icon-cloud.png');
export const ICON_INFO = require('../../../../../images/icon-info.png');
export const ICON_USERS = require('../../../../../images/icon-users.png');
-export const LOCAL_RECORDING = require('../../../../../images/downloadLocalRecording.png');
-export const TRACK_COLOR = BaseTheme.palette.ui07;
/* eslint-enable @typescript-eslint/no-var-requires */
// XXX The "standard" {@code BoxModel.padding} has been deemed insufficient in
@@ -51,13 +47,6 @@ export default {
paddingTop: BaseTheme.spacing[3]
},
- /**
- * Label for the start recording button.
- */
- startRecordingLabel: {
- color: BaseTheme.palette.text01,
- marginRight: 12
- },
highlightButton: {
backgroundColor: BaseTheme.palette.ui09,
flexDirection: 'row',
@@ -111,8 +100,15 @@ ColorSchemeRegistry.register('StartRecordingDialogContent', {
flexDirection: 'column'
},
- controlDisabled: {
- opacity: 0.5
+ footer: {
+ flexDirection: 'row',
+ justifyContent: 'flex-end',
+ marginHorizontal: BaseTheme.spacing[3],
+ paddingVertical: _PADDING
+ },
+
+ footerButton: {
+ marginLeft: BaseTheme.spacing[3]
},
header: {
@@ -120,9 +116,9 @@ ColorSchemeRegistry.register('StartRecordingDialogContent', {
marginHorizontal: BaseTheme.spacing[3]
},
- headerIntegrations: {
+ headerNested: {
...header,
- paddingHorizontal: BaseTheme.spacing[3]
+ paddingBottom: 0
},
headerInfo: {
@@ -133,7 +129,73 @@ ColorSchemeRegistry.register('StartRecordingDialogContent', {
},
loggedIn: {
- paddingHorizontal: _PADDING
+ paddingHorizontal: _PADDING,
+ paddingVertical: BaseTheme.spacing[2]
+ },
+
+ loggedInInfo: {
+ flex: 1,
+ marginRight: BaseTheme.spacing[2]
+ },
+
+ optionLabel: {
+ flex: 1,
+ fontSize: 16,
+ marginRight: BaseTheme.spacing[2],
+ textAlign: 'left'
+ },
+
+ pickerLabel: {
+ color: BaseTheme.palette.text02,
+ flex: 1,
+ textAlign: 'left'
+ },
+
+ section: {
+ flex: 0,
+ flexDirection: 'column',
+ paddingVertical: BaseTheme.spacing[2]
+ },
+
+ accordion: {
+ backgroundColor: BaseTheme.palette.ui02,
+ borderColor: BaseTheme.palette.ui03,
+ borderRadius: 11,
+ borderWidth: 1,
+ marginHorizontal: BaseTheme.spacing[3],
+ marginTop: BaseTheme.spacing[2],
+ overflow: 'hidden'
+ },
+
+ accordionHeader: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ padding: BaseTheme.spacing[2]
+ },
+
+ accordionText: {
+ flex: 1,
+ flexDirection: 'column',
+ marginRight: BaseTheme.spacing[2]
+ },
+
+ accordionTitle: {
+ color: BaseTheme.palette.text01,
+ fontWeight: '600'
+ },
+
+ accordionSummary: {
+ color: BaseTheme.palette.text02,
+ fontSize: 12
+ },
+
+ accordionChevronOpen: {
+ transform: [ { rotate: '180deg' } ]
+ },
+
+ accordionBody: {
+ paddingBottom: BaseTheme.spacing[2],
+ paddingHorizontal: BaseTheme.spacing[2]
},
recordingIcon: {
diff --git a/react/features/recording/components/Recording/styles.web.ts b/react/features/recording/components/Recording/styles.web.ts
index 50fa309c29..a27fb0e98f 100644
--- a/react/features/recording/components/Recording/styles.web.ts
+++ b/react/features/recording/components/Recording/styles.web.ts
@@ -1,16 +1,220 @@
-// XXX CSS is used on Web, JavaScript styles are use only for mobile. Export an
-// (empty) object so that styles[*] statements on Web don't trigger errors.
+import { Theme } from '@mui/material';
-export default {};
+export const ICON_INFO = 'images/icon-info.png';
-export const DROPBOX_LOGO = 'images/dropboxLogo_square.png';
+export const ICON_USERS = 'images/icon-users.png';
-export const LOCAL_RECORDING = 'images/downloadLocalRecording.png';
+/**
+ * Creates the theme based styles of the recording & transcription dialog
+ * content.
+ *
+ * @param {Theme} theme - The current theme.
+ * @returns {Object}
+ */
+export const startRecordingDialogStyles = (theme: Theme) => {
+ return {
+ container: {
+ flex: 0,
+ flexDirection: 'column' as const
+ },
-export const ICON_CLOUD = 'images/icon-cloud.png';
+ section: {
+ padding: `${theme.spacing(2)} 0`
+ },
-export const ICON_INFO = 'images/icon-info.png';
+ // No overflow: hidden here — the dropdown menus must be able to
+ // overflow the accordion; the header carries its own border radius.
+ accordion: {
+ background: theme.palette.ui02,
+ border: `1px solid ${theme.palette.ui03}`,
+ borderRadius: '4px',
+ boxSizing: 'border-box' as const,
+ marginTop: theme.spacing(2),
+ width: '100%'
+ },
-export const ICON_USERS = 'images/icon-users.png';
+ // Also resets the native button appearance — the header is a <button>
+ // so it is keyboard operable out of the box.
+ accordionHeader: {
+ alignItems: 'center',
+ appearance: 'none' as const,
+ background: 'none',
+ border: 0,
+ borderRadius: '4px',
+ boxSizing: 'border-box' as const,
+ color: theme.palette.text01,
+ cursor: 'pointer',
+ display: 'flex',
+ font: 'inherit',
+ gap: theme.spacing(2),
+ padding: '10px 12px',
+ textAlign: 'left' as const,
+ width: '100%',
+
+ '&:hover': {
+ background: theme.palette.ui03
+ },
+
+ '&:focus-visible': {
+ boxShadow: `0px 0px 0px 2px ${theme.palette.selectFocus} inset`,
+ outline: 0
+ }
+ },
+
+ accordionText: {
+ display: 'flex',
+ flex: 1,
+ flexDirection: 'column' as const,
+ gap: '2px',
+ minWidth: 0
+ },
+
+ accordionTitle: {
+ fontSize: '0.8125rem',
+ fontWeight: 600,
+ lineHeight: 1.2
+ },
+
+ accordionSummary: {
+ color: theme.palette.text02,
+ fontSize: '0.75rem',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap' as const
+ },
+
+ accordionChevron: {
+ color: theme.palette.text02,
+ display: 'flex',
+ marginLeft: 'auto',
+ transition: 'transform .16s'
+ },
+
+ accordionChevronOpen: {
+ transform: 'rotate(180deg)'
+ },
+
+ accordionBody: {
+ padding: '12px'
+ },
+
+ authorizationPanel: {
+ display: 'flex',
+ flexDirection: 'column' as const,
+ margin: `${theme.spacing(2)} 0 0`
+ },
+
+ loggedInPanel: {
+ padding: `${theme.spacing(2)} 0`
+ },
+
+ footer: {
+ display: 'flex',
+ flexDirection: 'row' as const,
+ justifyContent: 'flex-end',
+ padding: '12px 0 4px',
+
+ '& button:not(:first-child)': {
+ marginLeft: theme.spacing(2)
+ }
+ },
+
+ header: {
+ alignItems: 'center',
+ display: 'flex',
+ flex: 0,
+ flexDirection: 'row' as const,
+ justifyContent: 'space-between'
+ },
+
+ headerSpaceTop: {
+ marginTop: '10px'
+ },
+
+ title: {
+ alignItems: 'center',
+ display: 'inline-flex',
+ fontSize: '0.875rem',
+ marginLeft: theme.spacing(3),
+ maxWidth: '70%'
+ },
+
+ titleNoMargin: {
+ alignItems: 'center',
+ display: 'inline-flex',
+ fontSize: '0.875rem',
+ fontWeight: 600,
+ maxWidth: '70%'
+ },
+
+ optionLabel: {
+ alignItems: 'center',
+ display: 'inline-flex',
+ fontSize: '0.875rem',
+ maxWidth: '70%'
+ },
+
+ switch: {
+ marginLeft: 'auto'
+ },
+
+ iconContainer: {
+ alignItems: 'center',
+ display: 'inline-flex'
+ },
+
+ fileSharingIconContainer: {
+ backgroundColor: theme.palette.ui04,
+ borderRadius: '4px',
+ height: '40px',
+ justifyContent: 'center',
+ width: '42px'
+ },
+
+ fileSharingIcon: {
+ height: '18px',
+ objectFit: 'contain' as const,
+ width: '18px'
+ },
+
+ info: {
+ backgroundColor: theme.palette.warning02,
+ color: theme.palette.uiBackground,
+ display: 'inline-flex',
+ margin: '16px 0 8px',
+ width: '100%'
+ },
+
+ infoIcon: {
+ alignSelf: 'center',
+ height: '14px',
+ margin: '0 24px 0 16px',
+ objectFit: 'contain' as const,
+ width: '14px'
+ },
+
+ infoTitle: {
+ display: 'inline-flex',
+ fontSize: '0.875rem',
+ width: '290px'
+ },
+
+ localRecordingWarning: {
+ display: 'block',
+ fontSize: '0.875rem',
+ lineHeight: '1.25rem',
+ marginTop: theme.spacing(2),
+ padding: '8px 16px'
+ },
+
+ localRecordingWarningText: {
+ backgroundColor: theme.palette.ui03,
+ color: theme.palette.text01
+ },
-export const ICON_OPTIONS = 'images/icon-info.png';
+ localRecordingWarningNotification: {
+ backgroundColor: theme.palette.warning02,
+ color: theme.palette.uiBackground
+ }
+ };
+};
diff --git a/react/features/recording/components/Recording/web/DropdownSelect.tsx b/react/features/recording/components/Recording/web/DropdownSelect.tsx
new file mode 100644
index 0000000000..b9c488dcac
--- /dev/null
+++ b/react/features/recording/components/Recording/web/DropdownSelect.tsx
@@ -0,0 +1,374 @@
+import React, { useCallback, useEffect, useRef, useState } from 'react';
+import { makeStyles } from 'tss-react/mui';
+
+import Icon from '../../../../base/icons/components/Icon';
+import { IconArrowDown } from '../../../../base/icons/svg';
+import ContextMenu from '../../../../base/ui/components/web/ContextMenu';
+import ContextMenuItem from '../../../../base/ui/components/web/ContextMenuItem';
+import ContextMenuItemGroup from '../../../../base/ui/components/web/ContextMenuItemGroup';
+
+interface IOption {
+ label: string;
+ value: string;
+}
+
+interface IProps {
+
+ /**
+ * Whether or not the dropdown is disabled.
+ */
+ disabled?: boolean;
+
+ /**
+ * Id of the trigger element.
+ */
+ id: string;
+
+ /**
+ * Label to be displayed above the dropdown.
+ */
+ label?: string;
+
+ /**
+ * Change handler, invoked with the value of the picked option.
+ */
+ onChange: (value: string) => void;
+
+ /**
+ * The options of the dropdown.
+ */
+ options: Array<IOption>;
+
+ /**
+ * The value of the selected option.
+ */
+ value: string | null;
+}
+
+interface IItemProps {
+ label: string;
+ onSelect: (value: string) => void;
+ selected: boolean;
+ value: string;
+}
+
+const useStyles = makeStyles()(theme => {
+ return {
+ container: {
+ display: 'flex',
+ flexDirection: 'column'
+ },
+
+ label: {
+ color: theme.palette.selectLabel,
+ ...theme.typography.bodyShortRegular,
+ marginBottom: theme.spacing(2)
+ },
+
+ dropdownContainer: {
+ position: 'relative'
+ },
+
+ trigger: {
+ alignItems: 'center',
+ backgroundColor: theme.palette.selectBackground,
+ border: 0,
+ borderRadius: `${theme.shape.borderRadius}px`,
+ color: theme.palette.selectText,
+ cursor: 'pointer',
+ display: 'flex',
+ justifyContent: 'space-between',
+ ...theme.typography.bodyShortRegular,
+ padding: '10px 16px',
+ textAlign: 'left',
+ width: '100%',
+
+ '&:focus': {
+ outline: 0,
+ boxShadow: `0px 0px 0px 2px ${theme.palette.selectFocus}`
+ },
+
+ '&:disabled': {
+ color: theme.palette.selectDisabled,
+ cursor: 'default'
+ }
+ },
+
+ triggerText: {
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap'
+ },
+
+ chevron: {
+ marginLeft: theme.spacing(2),
+ transition: 'transform .16s'
+ },
+
+ chevronOpen: {
+ transform: 'rotate(180deg)'
+ },
+
+ // The z-index must beat the Switch knob (zIndex 10) of the option rows
+ // rendered under the dropdown.
+ menuWrapper: {
+ left: 0,
+ position: 'absolute',
+ right: 0,
+ top: `calc(100% + ${theme.spacing(1)})`,
+ zIndex: 50
+ },
+
+ menuWrapperUp: {
+ bottom: `calc(100% + ${theme.spacing(1)})`,
+ top: 'auto'
+ },
+
+ // Neutralizes the ContextMenu default positioning (marginTop/right/top
+ // target the participants pane) so the menu sits in the wrapper. The
+ // :focus highlight makes the arrow key navigation visible — the items
+ // only style the .focus-visible polyfill class, which programmatic
+ // focus() calls never set.
+ menu: {
+ boxSizing: 'border-box',
+ margin: 0,
+ maxHeight: '250px',
+ overflowY: 'auto',
+ position: 'static',
+ right: 'auto',
+ width: '100%',
+
+ '& [role="menuitem"]:focus': {
+ backgroundColor: theme.palette.overflowMenuItemHover,
+ outline: 0
+ }
+ }
+ };
+});
+
+/**
+ * An entry of the dropdown options list.
+ *
+ * @returns {JSX.Element}
+ */
+const DropdownSelectItem = ({ label, onSelect, selected, value }: IItemProps) => {
+ const onClick = useCallback(() => onSelect(value), [ onSelect, value ]);
+
+ return (
+ <ContextMenuItem
+ accessibilityLabel = { label }
+ onClick = { onClick }
+ role = 'menuitem'
+ selected = { selected }
+ text = { label } />
+ );
+};
+
+/**
+ * A themed single choice dropdown: a select look-alike built out of
+ * ContextMenu so the options list matches the app theme (the native <select>
+ * popup cannot be styled). The menu is rendered right under the trigger,
+ * matching its width.
+ *
+ * @returns {JSX.Element}
+ */
+// eslint-disable-next-line react/no-multi-comp
+const DropdownSelect = ({ disabled, id, label, onChange, options, value }: IProps) => {
+ const { classes, cx } = useStyles();
+ const [ isOpen, setIsOpen ] = useState(false);
+ const [ openUp, setOpenUp ] = useState(false);
+ const containerRef = useRef<HTMLDivElement>(null);
+ const menuRef = useRef<HTMLDivElement>(null);
+ const triggerRef = useRef<HTMLButtonElement>(null);
+ const onToggle = useCallback(() => {
+ if (disabled) {
+ return;
+ }
+
+ // When opening, check whether the menu fits below the trigger within
+ // the closest scroll container (the dialog content) and open upwards
+ // otherwise — the menu would be clipped/scrolled out of view below.
+ if (!isOpen && containerRef.current) {
+ let clipBottom = window.innerHeight;
+ let parent = containerRef.current.parentElement;
+
+ while (parent) {
+ const { overflowY } = window.getComputedStyle(parent);
+
+ if (overflowY === 'auto' || overflowY === 'scroll') {
+ clipBottom = parent.getBoundingClientRect().bottom;
+ break;
+ }
+ parent = parent.parentElement;
+ }
+
+ const { bottom } = containerRef.current.getBoundingClientRect();
+ const menuHeight = Math.min(250, (options.length * 40) + 16) + 8;
+
+ setOpenUp(clipBottom - bottom < menuHeight);
+ }
+
+ setIsOpen(!isOpen);
+ }, [ disabled, isOpen, options.length ]);
+ const onSelect = useCallback((selectedValue: string) => {
+ onChange(selectedValue);
+ setIsOpen(false);
+ triggerRef.current?.focus();
+ }, [ onChange ]);
+
+ const getMenuItems = useCallback(
+ () => Array.from(menuRef.current?.querySelectorAll<HTMLElement>('[role="menuitem"]') ?? []), []);
+
+ // Opens the menu with the arrow keys per the menu button pattern; when it
+ // is already open, moves the focus into the item list.
+ const onTriggerKeyDown = useCallback((e: React.KeyboardEvent) => {
+ if (e.key !== 'ArrowDown' && e.key !== 'ArrowUp') {
+ return;
+ }
+
+ e.preventDefault();
+
+ if (isOpen) {
+ const items = getMenuItems();
+
+ (e.key === 'ArrowDown' ? items[0] : items[items.length - 1])?.focus();
+ } else {
+ onToggle();
+ }
+ }, [ getMenuItems, isOpen, onToggle ]);
+
+ // Arrow key navigation between the menu items, wrapping around the ends.
+ const onMenuKeyDown = useCallback((e: React.KeyboardEvent) => {
+ const items = getMenuItems();
+ const currentIndex = items.indexOf(document.activeElement as HTMLElement);
+
+ switch (e.key) {
+ case 'ArrowDown':
+ e.preventDefault();
+ items[(currentIndex + 1) % items.length]?.focus();
+ break;
+ case 'ArrowUp':
+ e.preventDefault();
+ items[currentIndex <= 0 ? items.length - 1 : currentIndex - 1]?.focus();
+ break;
+ case 'Home':
+ e.preventDefault();
+ items[0]?.focus();
+ break;
+ case 'End':
+ e.preventDefault();
+ items[items.length - 1]?.focus();
+ break;
+ case 'Tab':
+ setIsOpen(false);
+ break;
+ }
+ }, [ getMenuItems ]);
+
+ // Move focus to the selected item when the menu opens.
+ useEffect(() => {
+ if (isOpen) {
+ const selectedIndex = Math.max(0, options.findIndex(option => option.value === value));
+ const items = menuRef.current?.querySelectorAll<HTMLElement>('[role="menuitem"]');
+
+ items?.[Math.min(selectedIndex, items.length - 1)]?.focus();
+ }
+ }, [ isOpen ]);
+
+ useEffect(() => {
+ if (!isOpen) {
+ return;
+ }
+
+ const onOutsideClick = (e: MouseEvent) => {
+ if (!containerRef.current?.contains(e.target as Node)) {
+ setIsOpen(false);
+ }
+ };
+
+ // Capture phase so closing the menu does not also close the dialog.
+ const onEscKey = (e: KeyboardEvent) => {
+ if (e.key === 'Escape') {
+ e.stopPropagation();
+ setIsOpen(false);
+ triggerRef.current?.focus();
+ }
+ };
+
+ window.addEventListener('click', onOutsideClick);
+ window.addEventListener('keydown', onEscKey, true);
+
+ return () => {
+ window.removeEventListener('click', onOutsideClick);
+ window.removeEventListener('keydown', onEscKey, true);
+ };
+ }, [ isOpen ]);
+
+ // Fall back to the first option's label when the current value isn't among the options
+ // (e.g. it just became unavailable while the dialog stayed open) — otherwise the trigger
+ // would render blank instead of a usable service name.
+ const selectedLabel = options.find(option => option.value === value)?.label ?? options[0]?.label ?? '';
+
+ return (
+ <div className = { classes.container }>
+ { label && (
+ <label
+ className = { classes.label }
+ htmlFor = { id }>
+ { label }
+ </label>
+ ) }
+ <div
+ className = { classes.dropdownContainer }
+ ref = { containerRef }>
+ <button
+ aria-controls = { `${id}-menu` }
+ aria-expanded = { isOpen }
+ aria-haspopup = 'menu'
+ className = { classes.trigger }
+ disabled = { disabled }
+ id = { id }
+ onClick = { onToggle }
+ onKeyDown = { onTriggerKeyDown }
+ ref = { triggerRef }
+ type = 'button'>
+ <span className = { classes.triggerText }>
+ { selectedLabel }
+ </span>
+ <Icon
+ className = { cx(classes.chevron, isOpen && classes.chevronOpen) }
+ size = { 18 }
+ src = { IconArrowDown } />
+ </button>
+ { isOpen && (
+ // The arrow key interactions of the menu are handled on the
+ // wrapper; the items themselves take care of Enter/Space.
+ <div
+ className = { cx(classes.menuWrapper, openUp && classes.menuWrapperUp) }
+ onKeyDown = { onMenuKeyDown }
+ ref = { menuRef }>
+ <ContextMenu
+ accessibilityLabel = { label }
+ className = { classes.menu }
+ hidden = { false }
+ id = { `${id}-menu` }
+ role = 'menu'>
+ <ContextMenuItemGroup>
+ { options.map(option => (
+ <DropdownSelectItem
+ key = { option.value }
+ label = { option.label }
+ onSelect = { onSelect }
+ selected = { option.value === value }
+ value = { option.value } />
+ )) }
+ </ContextMenuItemGroup>
+ </ContextMenu>
+ </div>
+ ) }
+ </div>
+ </div>
+ );
+};
+
+export default DropdownSelect;
diff --git a/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx b/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
index 8d20c65031..e93021b221 100644
--- a/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
+++ b/react/features/recording/components/Recording/web/RecordingTranscriptionDialog.tsx
@@ -2,11 +2,11 @@ import React from 'react';
import { connect } from 'react-redux';
import { IReduxState } from '../../../../app/types';
+import { hideDialog } from '../../../../base/dialog/actions';
import { translate } from '../../../../base/i18n/functions';
import Dialog from '../../../../base/ui/components/web/Dialog';
import { toggleScreenshotCaptureSummary } from '../../../../screenshot-capture/actions';
import { isScreenshotCaptureEnabled } from '../../../../screenshot-capture/functions';
-import { RECORDING_TYPES } from '../../../constants';
import AbstractStartRecordingDialog, {
mapStateToProps as abstractMapStateToProps
} from '../AbstractStartRecordingDialog';
@@ -15,43 +15,22 @@ import StartRecordingDialogContent from './StartRecordingDialogContent';
/**
- * React Component for getting confirmation to start a file recording session in
- * progress.
+ * React Component for the recording & transcription dialog. Each section
+ * (audio & video recording, transcription) has its own start/stop button
+ * which applies the action immediately and closes the dialog.
*
* @augments Component
*/
class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
/**
- * Returns true when the primary button should be disabled.
+ * Dismisses the dialog.
*
- * Disabled when nothing has changed (no-op), or when starting recording
- * but the recording service selection is invalid.
- *
- * @returns {boolean}
+ * @inheritdoc
+ * @returns {void}
*/
- isStartRecordingDisabled() {
- if (!this._isChanged()) {
- return true;
- }
-
- const { _recordingRunning } = this.props;
- const { isTokenValid, selectedRecordingService, shouldRecordAudioAndVideo } = this.state;
- const startingRecording = !_recordingRunning && shouldRecordAudioAndVideo;
-
- if (!startingRecording) {
- return false;
- }
-
- if (selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) {
- return false;
- } else if (selectedRecordingService === RECORDING_TYPES.DROPBOX) {
- return !isTokenValid;
- } else if (selectedRecordingService === RECORDING_TYPES.LOCAL) {
- return false;
- }
-
- return true;
+ override _dismiss() {
+ this.props.dispatch(hideDialog());
}
/**
@@ -64,10 +43,9 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
isTokenValid,
isValidating,
localRecordingOnlySelf,
+ selectedLanguage,
selectedRecordingService,
sharingEnabled,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
spaceLeft,
userName
} = this.state;
@@ -76,20 +54,15 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
_fileRecordingsServiceEnabled,
_fileRecordingsServiceSharingEnabled,
_recordingRunning,
- _transcriptionRunning
+ _transcriptionRunning,
+ recordAudioAndVideo
} = this.props;
- const sessionRunning = Boolean(_recordingRunning || _transcriptionRunning);
-
return (
<Dialog
- ok = {{
- // On first open (nothing running) the primary action starts a service; once a
- // service is active the dialog manages it, so the button applies the changes.
- translationKey: sessionRunning ? 'dialog.applyChanges' : 'dialog.startRecording',
- disabled: this.isStartRecordingDisabled()
- }}
- onSubmit = { this._onSubmit }
+ cancel = {{ hidden: true }}
+ disableEnter = { true }
+ ok = {{ hidden: true }}
titleKey = { _canTranscribe ? 'dialog.recordAndTranscribe' : 'toolbar.record' }>
<StartRecordingDialogContent
fileRecordingsServiceEnabled = { _fileRecordingsServiceEnabled }
@@ -98,18 +71,24 @@ class RecordingTranscriptionDialog extends AbstractStartRecordingDialog {
isTokenValid = { isTokenValid }
isValidating = { isValidating }
localRecordingOnlySelf = { localRecordingOnlySelf }
- onChange = { this._onSelectedRecordingServiceChanged }
onLocalRecordingSelfChange = { this._onLocalRecordingSelfChange }
- onRecordAudioAndVideoChange = { this._onRecordAudioAndVideoChange }
+ onRecordingServiceChange = { this._onSelectedRecordingServiceChanged }
onSharingSettingChanged = { this._onSharingSettingChanged }
- onTranscriptionChange = { this._onTranscriptionChange }
+ onStartBoth = { this._onStartBothPress }
+ onStartRecording = { this._onStartRecordingPress }
+ onStartTranscription = { this._onStartTranscriptionPress }
+ onStopBoth = { this._onStopBothPress }
+ onStopRecording = { this._onStopRecordingPress }
+ onStopTranscription = { this._onStopTranscriptionPress }
+ onSubtitlesLanguageChange = { this._onSubtitlesLanguageChanged }
+ recordAudioAndVideo = { recordAudioAndVideo }
recordingRunning = { Boolean(_recordingRunning) }
+ selectedLanguage = { selectedLanguage }
selectedRecordingService = { selectedRecordingService }
- servicesRunning = { Boolean(_recordingRunning || _transcriptionRunning) }
sharingSetting = { sharingEnabled }
- shouldRecordAudioAndVideo = { shouldRecordAudioAndVideo }
- shouldRecordTranscription = { shouldRecordTranscription }
spaceLeft = { spaceLeft }
+ startRecordingDisabled = { this._isStartRecordingDisabled() }
+ transcriptionRunning = { Boolean(_transcriptionRunning) }
userName = { userName } />
</Dialog>
);
diff --git a/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx b/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx
index 17b710f650..474fc76caf 100644
--- a/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx
+++ b/react/features/recording/components/Recording/web/StartRecordingDialogContent.tsx
@@ -1,9 +1,10 @@
import React from 'react';
import { connect } from 'react-redux';
+import { withStyles } from 'tss-react/mui';
import { translate } from '../../../../base/i18n/functions';
import Icon from '../../../../base/icons/components/Icon';
-import { IconArrowDown, IconArrowRight } from '../../../../base/icons/svg';
+import { IconArrowDown } from '../../../../base/icons/svg';
import Container from '../../../../base/react/components/web/Container';
import Image from '../../../../base/react/components/web/Image';
import LoadingIndicator from '../../../../base/react/components/web/LoadingIndicator';
@@ -15,338 +16,219 @@ import { RECORDING_TYPES } from '../../../constants';
import { getRecordingDurationEstimation } from '../../../functions';
import AbstractStartRecordingDialogContent, { mapStateToProps } from '../AbstractStartRecordingDialogContent';
import {
- DROPBOX_LOGO,
- ICON_CLOUD,
ICON_INFO,
ICON_USERS,
- LOCAL_RECORDING
+ startRecordingDialogStyles
} from '../styles.web';
+import DropdownSelect from './DropdownSelect';
+
const EMPTY_FUNCTION = () => {
// empty
};
/**
- * The start recording dialog content for the mobile application.
+ * The recording & transcription dialog content for the web application.
*/
class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
- /**
- * Renders the two service toggles (recording + transcription) directly,
- * without the collapsible wrapper — used in manage mode when a session
- * is already active.
- *
- * @returns {React$Component}
- */
- _renderSessionToggles() {
- const {
- _isLiveStreamRunning,
- _localRecordingRunning,
- _renderRecording,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
- t
- } = this.props;
-
- // A participant who started a local recording must always be able to stop it,
- // even without the JWT recording feature that _renderRecording reflects.
- // Cloud recording (Jibri) cannot run alongside an active live stream.
- const renderRecordingToggle = (!_isLiveStreamRunning && _renderRecording) || _localRecordingRunning;
-
- return (
- <>
- { renderRecordingToggle && (
- <div className = 'recording-header space-top'>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-audio-video'>
- { t('recording.recordAudioAndVideo') }
- </label>
- <Switch
- checked = { shouldRecordAudioAndVideo }
- className = 'recording-switch'
- id = 'recording-switch-audio-video'
- onChange = { this._onRecordAudioAndVideoSwitchChange } />
- </div>
- ) }
- { this._canStartTranscribing() && (
- <div className = 'recording-header space-top'>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-transcription'>
- { t('recording.recordTranscription') }
- </label>
- <Switch
- checked = { shouldRecordTranscription }
- className = 'recording-switch'
- id = 'recording-switch-transcription'
- onChange = { this._onTranscriptionSwitchChange } />
- </div>
- ) }
- { !_renderRecording && this._renderLocalRecordingContent() }
- </>
- );
- }
-
override render() {
- const {
- _canStartTranscribing,
- _isLiveStreamRunning,
- _renderRecording,
- _transcriptionRunning,
- fileRecordingsServiceEnabled,
- integrationsEnabled,
- recordingRunning
- } = this.props;
-
- if (recordingRunning) {
- return (
- <Container className = 'recording-dialog'>
- { this._renderSessionToggles() }
- </Container>
- );
- }
-
- const isTranscriptionOnlySession = Boolean(_transcriptionRunning) && !recordingRunning;
-
- if (isTranscriptionOnlySession) {
- // Transcription-only session: show the share-link toggle plus the per-capability service
- // toggles (recording, transcription, local recording) so the participant can act on
- // whatever they are allowed to control.
- return (
- <Container className = 'recording-dialog'>
- { this._renderFileSharingContent() }
- { this._renderSessionToggles() }
- { /* _renderSessionToggles already covers local recording when !_renderRecording */ }
- { _renderRecording && this._renderLocalRecordingContent() }
- </Container>
- );
- }
-
- // Cloud recording is only usable when a service (file recording or integration) is available,
- // the JWT recording feature alone doesn't imply one, and it cannot run alongside an active live
- // stream (both require Jibri). Transcription nests under the cloud options when supported,
- // otherwise it shows standalone.
- const supportsCloudRecording = _renderRecording && (fileRecordingsServiceEnabled || integrationsEnabled)
- && !_isLiveStreamRunning;
- const showTranscription = _canStartTranscribing && !supportsCloudRecording;
+ const classes = this.props.classes ?? {};
return (
- <Container className = 'recording-dialog'>
- { supportsCloudRecording && (
- <>
- { this._renderNoIntegrationsContent() }
- { this._renderFileSharingContent() }
- { this._renderAdvancedOptions() }
- { this._renderUploadToTheCloudInfo() }
- { this._renderIntegrationsContent() }
- </>
- )}
- { showTranscription && this._renderTranscriptionOnly() }
- { this._renderLocalRecordingContent() }
+ <Container className = { classes.container }>
+ { this._renderRecordingSection() }
+ { this._renderTranscriptionSection() }
+ { this._renderFooter() }
</Container>
);
}
/**
- * Renders the transcription toggle directly when no recording service
- * is available but transcription is.
+ * Renders the accordion wrapping a section's options: a header with the
+ * options title, a one line summary of the current choices and a chevron,
+ * followed by the options themselves when expanded.
*
+ * @param {Object} options - Rendering options.
* @returns {React$Component}
*/
- _renderTranscriptionOnly() {
- const { shouldRecordTranscription, t } = this.props;
+ _renderAccordion({ body, expanded, id, onToggle, summary, titleKey }: {
+ body: React.ReactNode;
+ expanded: boolean;
+ id: string;
+ onToggle: () => void;
+ summary: string;
+ titleKey: string;
+ }) {
+ const { t } = this.props;
+ const classes = this.props.classes ?? {};
return (
- <div className = 'recording-header space-top'>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-transcription'>
- { t('recording.recordTranscription') }
- </label>
- <Switch
- checked = { shouldRecordTranscription }
- className = 'recording-switch'
- id = 'recording-switch-transcription'
- onChange = { this._onTranscriptionSwitchChange } />
- </div>
- );
- }
-
- /**
- * Renders the switch for saving the transcription.
- *
- * @returns {React$Component}
- */
- _renderAdvancedOptions() {
- // Recording/transcription permissions needed.
- if (!this.props._canManageRecordingOrTranscription) {
- return null;
- }
- if (!this._canStartTranscribing() && !this.props.servicesRunning) {
- return null;
- }
- const { selectedRecordingService } = this.props;
- const validService = selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
- || !selectedRecordingService;
-
- if (!validService) {
- return null;
- }
-
- const { showAdvancedOptions } = this.state;
- const { _renderRecording, shouldRecordAudioAndVideo, shouldRecordTranscription, t } = this.props;
-
- return (
- <>
- <div
- className = 'recording-header space-top'
- onClick = { this._onToggleShowOptions }>
- <label className = 'recording-title-no-space'>
- {t('recording.showAdvancedOptions')}
- </label>
+ <Container className = { classes.accordion }>
+ <button
+ aria-controls = { `${id}-content` }
+ aria-expanded = { expanded }
+ className = { classes.accordionHeader }
+ id = { id }
+ onClick = { onToggle }
+ type = 'button'>
+ <Container className = { classes.accordionText }>
+ <span className = { classes.accordionTitle }>
+ { t(titleKey) }
+ </span>
+ { !expanded && (
+ <span className = { classes.accordionSummary }>
+ { summary }
+ </span>
+ ) }
+ </Container>
<Icon
- ariaPressed = { showAdvancedOptions }
- onClick = { this._onToggleShowOptions }
- role = 'button'
- size = { 24 }
- src = { showAdvancedOptions ? IconArrowDown : IconArrowRight } />
- </div>
- {showAdvancedOptions && (
- <>
- <div className = 'recording-header space-top'>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-transcription'>
- { t('recording.recordTranscription') }
- </label>
- <Switch
- checked = { shouldRecordTranscription }
- className = 'recording-switch'
- id = 'recording-switch-transcription'
- onChange = { this._onTranscriptionSwitchChange } />
- </div>
- {_renderRecording && (
- <div className = 'recording-header space-top'>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-audio-video'>
- { t('recording.recordAudioAndVideo') }
- </label>
- <Switch
- checked = { shouldRecordAudioAndVideo }
- className = 'recording-switch'
- id = 'recording-switch-audio-video'
- onChange = { this._onRecordAudioAndVideoSwitchChange } />
- </div>
- )}
- </>
- )}
- </>
+ className = { `${classes.accordionChevron} ${expanded ? classes.accordionChevronOpen : ''}` }
+ size = { 18 }
+ src = { IconArrowDown } />
+ </button>
+ { expanded && (
+ <div
+ className = { classes.accordionBody }
+ id = { `${id}-content` }>
+ { body }
+ </div>
+ ) }
+ </Container>
);
}
/**
- * Renders the content in case no integrations were enabled.
+ * Renders the audio & video recording section: the action row with the
+ * start/stop button and the options accordion holding the storage service
+ * combobox and the selected service's options.
*
* @returns {React$Component}
*/
- _renderNoIntegrationsContent() {
- if (!this._shouldRenderNoIntegrationsContent()) {
+ _renderRecordingSection() {
+ const recordingServiceOptions = this._getRecordingServiceOptions();
+
+ if (!this._shouldRenderRecordingSection(recordingServiceOptions)) {
return null;
}
const {
- _localRecordingAvailable,
- integrationsEnabled,
isValidating,
- isVpaas,
+ onStartRecording,
+ onStopRecording,
+ recordingRunning,
selectedRecordingService,
- shouldRecordAudioAndVideo,
- shouldRecordTranscription,
+ startRecordingDisabled,
t
} = this.props;
-
- const switchContent
- = integrationsEnabled || _localRecordingAvailable
- ? (
- <Switch
- checked = { selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
- && (shouldRecordAudioAndVideo || shouldRecordTranscription) }
- className = 'recording-switch'
- disabled = { isValidating }
- id = 'recording-switch-jitsi'
- onChange = { this._onRecordingServiceSwitchChange } />
- ) : null;
-
- const label = isVpaas ? t('recording.serviceDescriptionCloud') : t('recording.serviceDescription');
- const jitsiContentRecordingIconContainer
- = integrationsEnabled || _localRecordingAvailable
- ? 'jitsi-content-recording-icon-container-with-switch'
- : 'jitsi-content-recording-icon-container-without-switch';
- const contentRecordingClass = isVpaas
- ? 'cloud-content-recording-icon-container'
- : jitsiContentRecordingIconContainer;
- const jitsiRecordingHeaderClass = !isVpaas && 'jitsi-recording-header';
+ const { showRecordingOptions } = this.state;
+ const classes = this.props.classes ?? {};
+ const serviceOptions = recordingServiceOptions.map(service => {
+ return {
+ label: t(this._getServiceLabelKey(service)),
+ value: service
+ };
+ });
return (
- <Container
- className = { `recording-header ${jitsiRecordingHeaderClass}` }
- key = 'noIntegrationSetting'>
- <Container className = { contentRecordingClass }>
- <Image
- alt = ''
- className = 'content-recording-icon'
- src = { ICON_CLOUD } />
+ <Container className = { classes.section }>
+ <Container className = { classes.header }>
+ <label className = { classes.titleNoMargin }>
+ { t('recording.recordAudioAndVideo') }
+ </label>
+ <Container className = { classes.switch }>
+ { recordingRunning ? (
+ <Button
+ accessibilityLabel = { t('dialog.stopRecording') }
+ labelKey = 'dialog.stop'
+ onClick = { onStopRecording }
+ testId = 'recordingDialog.stopRecording'
+ type = { BUTTON_TYPES.DESTRUCTIVE } />
+ ) : (
+ <Button
+ accessibilityLabel = { t('dialog.startRecording') }
+ disabled = { startRecordingDisabled || isValidating }
+ labelKey = 'dialog.start'
+ onClick = { onStartRecording }
+ testId = 'recordingDialog.startRecording'
+ type = { BUTTON_TYPES.PRIMARY } />
+ ) }
+ </Container>
</Container>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-jitsi'>
- { label }
- </label>
- { switchContent }
+ { this._renderAccordion({
+ body: (
+ <>
+ <DropdownSelect
+ disabled = { recordingRunning || isValidating }
+ id = 'recording-service-select'
+ label = { t('recording.storageLocation') }
+ onChange = { this._onRecordingServiceChange }
+ options = { serviceOptions }
+ value = { selectedRecordingService ?? '' } />
+ { selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE
+ && this._renderJitsiServiceOptions() }
+ { selectedRecordingService === RECORDING_TYPES.DROPBOX
+ && this._renderDropboxOptions() }
+ { selectedRecordingService === RECORDING_TYPES.LOCAL
+ && this._renderLocalRecordingOptions() }
+ { this._renderFollowMeRecorder() }
+ </>
+ ),
+ expanded: showRecordingOptions,
+ id: 'recording-options',
+ onToggle: this._onToggleRecordingOptions,
+
+ // Only rendered by _renderAccordion while collapsed — skip computing it
+ // (and its nested t() calls) while the section is expanded.
+ summary: showRecordingOptions ? '' : this._getRecordingSummary(),
+ titleKey: 'recording.recordingOptions'
+ }) }
</Container>
);
}
/**
- * Renders the file recording service sharing options, if enabled.
+ * Renders the options of the Jitsi recording service: the recording link
+ * sharing switch and the vpaas storage warning.
*
* @returns {React$Component}
*/
- _renderFileSharingContent() {
- if (!this._shouldRenderFileSharingContent()) {
- return null;
- }
-
+ _renderJitsiServiceOptions() {
const {
isValidating,
onSharingSettingChanged,
+ recordingRunning,
sharingSetting,
t
} = this.props;
+ const classes = this.props.classes ?? {};
return (
- <Container
- className = 'recording-header'
- key = 'fileSharingSetting'>
- <Container className = 'recording-icon-container file-sharing-icon-container'>
- <Image
- alt = ''
- className = 'recording-file-sharing-icon'
- src = { ICON_USERS } />
- </Container>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-share'>
- { t('recording.fileSharingdescription') }
- </label>
- <Switch
- checked = { sharingSetting }
- className = 'recording-switch'
- disabled = { isValidating || !this.props.shouldRecordAudioAndVideo }
- id = 'recording-switch-share'
- onChange = { onSharingSettingChanged } />
- </Container>
+ <>
+ { this._shouldRenderFileSharingContent() && (
+ <Container
+ className = { `${classes.header} ${classes.headerSpaceTop}` }
+ key = 'fileSharingSetting'>
+ <Container className = { `${classes.iconContainer} ${classes.fileSharingIconContainer}` }>
+ <Image
+ alt = ''
+ className = { classes.fileSharingIcon }
+ src = { ICON_USERS } />
+ </Container>
+ <label
+ className = { classes.title }
+ htmlFor = 'recording-switch-share'>
+ { t('recording.fileSharingdescription') }
+ </label>
+ <Switch
+ checked = { sharingSetting }
+ className = { classes.switch }
+ disabled = { isValidating || recordingRunning }
+ id = 'recording-switch-share'
+ onChange = { onSharingSettingChanged } />
+ </Container>
+ ) }
+ { this._renderUploadToTheCloudInfo() }
+ </>
);
}
@@ -359,23 +241,24 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
const {
_hideStorageWarning,
isVpaas,
- selectedRecordingService,
t
} = this.props;
- if (!(isVpaas && selectedRecordingService === RECORDING_TYPES.JITSI_REC_SERVICE) || _hideStorageWarning) {
+ if (!isVpaas || _hideStorageWarning) {
return null;
}
+ const classes = this.props.classes ?? {};
+
return (
<Container
- className = 'recording-info'
+ className = { classes.info }
key = 'cloudUploadInfo'>
<Image
alt = ''
- className = 'recording-info-icon'
+ className = { classes.infoIcon }
src = { ICON_INFO } />
- <Text className = 'recording-info-title'>
+ <Text className = { classes.infoTitle }>
{ t('recording.serviceDescriptionCloudInfo') }
</Text>
</Container>
@@ -383,32 +266,51 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
}
/**
- * Renders a spinner component.
+ * Renders the Dropbox account area: sign in button, or account info plus
+ * sign out button once authorized.
*
* @returns {React$Component}
*/
- _renderSpinner() {
- return (
- <LoadingIndicator size = 'small' />
- );
- }
-
- /**
- * Renders the screen with the account information of a logged in user.
- *
- * @returns {React$Component}
- */
- _renderSignOut() {
+ _renderDropboxOptions() {
const {
+ isTokenValid,
+ isValidating,
spaceLeft,
t,
userName
} = this.props;
+ const classes = this.props.classes ?? {};
+
+ if (isValidating) {
+ return (
+ <Container className = { classes.authorizationPanel }>
+ <LoadingIndicator size = 'small' />
+ </Container>
+ );
+ }
+
+ if (!isTokenValid) {
+ return (
+ <Container className = { `${classes.header} ${classes.headerSpaceTop}` }>
+ <span className = { classes.optionLabel }>
+ { t('recording.dropboxSignInPrompt') }
+ </span>
+ <Container className = { classes.switch }>
+ <Button
+ accessibilityLabel = { t('recording.signIn') }
+ labelKey = 'recording.signIn'
+ onClick = { this._onSignIn }
+ type = { BUTTON_TYPES.PRIMARY } />
+ </Container>
+ </Container>
+ );
+ }
+
const duration = getRecordingDurationEstimation(spaceLeft);
return (
- <Container>
- <Container className = 'logged-in-panel'>
+ <Container className = { `${classes.header} ${classes.headerSpaceTop}` }>
+ <Container className = { classes.loggedInPanel }>
<Container>
<Text>
{ t('recording.loggedIn', { userName }) }
@@ -425,192 +327,222 @@ class StartRecordingDialogContent extends AbstractStartRecordingDialogContent {
</Text>
</Container>
</Container>
+ <Container className = { classes.switch }>
+ <Button
+ accessibilityLabel = { t('recording.signOut') }
+ labelKey = 'recording.signOut'
+ onClick = { this._onSignOut }
+ type = { BUTTON_TYPES.SECONDARY } />
+ </Container>
</Container>
);
}
/**
- * Renders the content in case integrations were enabled.
+ * Renders the options for local recordings.
*
- * @protected
* @returns {React$Component}
*/
- _renderIntegrationsContent() {
- if (!this._shouldRenderIntegrationsContent()) {
- return null;
- }
-
+ _renderLocalRecordingOptions() {
const {
- _localRecordingAvailable,
- fileRecordingsServiceEnabled,
- isTokenValid,
+ _localRecordingNoNotification,
+ _localRecordingSelfEnabled,
isValidating,
- selectedRecordingService,
+ localRecordingOnlySelf,
+ onLocalRecordingSelfChange,
+ recordingRunning,
t
} = this.props;
- let content = null;
- let switchContent = null;
- let labelContent = (
- <Text className = 'recording-title'>
- { t('recording.authDropboxText') }
- </Text>
- );
+ const classes = this.props.classes ?? {};
- if (isValidating) {
- content = this._renderSpinner();
- switchContent = <Container className = 'recording-switch' />;
- } else if (isTokenValid) {
- content = this._renderSignOut();
- switchContent = (
- <Container className = 'recording-switch'>
- <Button
- accessibilityLabel = { t('recording.signOut') }
- labelKey = 'recording.signOut'
- onClick = { this._onSignOut }
- type = { BUTTON_TYPES.SECONDARY } />
- </Container>
- );
+ return (
+ <>
+ { _localRecordingSelfEnabled && (
+ <Container className = { `${classes.header} ${classes.headerSpaceTop}` }>
+ <Container className = { `${classes.iconContainer} ${classes.fileSharingIconContainer}` }>
+ <Image
+ alt = ''
+ className = { classes.fileSharingIcon }
+ src = { ICON_USERS } />
+ </Container>
+ <label
+ className = { classes.title }
+ htmlFor = 'recording-switch-myself'>
+ { t('recording.onlyRecordSelf') }
+ </label>
+ <Switch
+ checked = { Boolean(localRecordingOnlySelf) }
+ className = { classes.switch }
+ disabled = { isValidating || recordingRunning }
+ id = 'recording-switch-myself'
+ onChange = { onLocalRecordingSelfChange ?? EMPTY_FUNCTION } />
+ </Container>
+ ) }
+ <Text className = { `${classes.localRecordingWarning} ${classes.localRecordingWarningText}` }>
+ { t('recording.localRecordingWarning') }
+ </Text>
+ { _localRecordingNoNotification && !localRecordingOnlySelf
+ && <Text className = { `${classes.localRecordingWarning} ${classes.localRecordingWarningNotification}` }>
+ { t('recording.localRecordingNoNotificationWarning') }
+ </Text>
+ }
+ </>
+ );
+ }
- } else {
- switchContent = (
- <Container className = 'recording-switch'>
- <Button
- accessibilityLabel = { t('recording.signIn') }
- labelKey = 'recording.signIn'
- onClick = { this._onSignIn }
- type = { BUTTON_TYPES.PRIMARY } />
- </Container>
- );
+ /**
+ * Renders the recorder follow me switch for cloud based recordings.
+ *
+ * @returns {React$Component}
+ */
+ _renderFollowMeRecorder() {
+ if (!this._shouldRenderFollowMeRecorder()) {
+ return null;
}
- if (fileRecordingsServiceEnabled || _localRecordingAvailable) {
- switchContent = (
- <Switch
- checked = { selectedRecordingService
- === RECORDING_TYPES.DROPBOX }
- className = 'recording-switch'
- disabled = { isValidating }
- id = 'recording-switch-integration'
- onChange = { this._onDropboxSwitchChange } />
- );
- labelContent = (
+ const { t } = this.props;
+ const classes = this.props.classes ?? {};
+
+ return (
+ <Container className = { `${classes.header} ${classes.headerSpaceTop}` }>
<label
- className = 'recording-title'
- htmlFor = 'recording-switch-integration'>
- { t('recording.authDropboxText') }
+ className = { classes.optionLabel }
+ htmlFor = 'recording-switch-follow-me'>
+ { t('settings.followMeRecorder') }
</label>
- );
+ <Switch
+ checked = { this._isFollowMeRecorderChecked() }
+ className = { classes.switch }
+ disabled = { this._isFollowMeRecorderDisabled() }
+ id = 'recording-switch-follow-me'
+ onChange = { this._onFollowMeRecorderChange } />
+ </Container>
+ );
+ }
+
+ /**
+ * Renders the transcription section: header with the start/stop button
+ * and a collapsible area holding the language combobox.
+ *
+ * @returns {React$Component}
+ */
+ _renderTranscriptionSection() {
+ if (!this._shouldRenderTranscriptionSection()) {
+ return null;
}
+ const {
+ _availableLanguages,
+ onStartTranscription,
+ onStopTranscription,
+ selectedLanguage,
+ t,
+ transcriptionRunning
+ } = this.props;
+ const { showTranscriptionOptions } = this.state;
+ const classes = this.props.classes ?? {};
+ const languageOptions = _availableLanguages.map((lang: string) => {
+ return {
+ label: t(lang),
+ value: lang
+ };
+ });
+
return (
- <Container>
- <Container
- className = { `recording-header ${this._shouldRenderNoIntegrationsContent()
- ? 'recording-header-line' : ''}` }>
- <Container
- className = 'recording-icon-container'>
- <Image
- alt = ''
- className = 'recording-icon'
- src = { DROPBOX_LOGO } />
+ <Container className = { classes.section }>
+ <Container className = { classes.header }>
+ <label className = { classes.titleNoMargin }>
+ { t('recording.recordTranscription') }
+ </label>
+ <Container className = { classes.switch }>
+ { transcriptionRunning ? (
+ <Button
+ accessibilityLabel = { t('dialog.stopTranscription') }
+ labelKey = 'dialog.stop'
+ onClick = { onStopTranscription }
+ testId = 'recordingDialog.stopTranscription'
+ type = { BUTTON_TYPES.DESTRUCTIVE } />
+ ) : (
+ <Button
+ accessibilityLabel = { t('dialog.startTranscription') }
+ labelKey = 'dialog.start'
+ onClick = { onStartTranscription }
+ testId = 'recordingDialog.startTranscription'
+ type = { BUTTON_TYPES.PRIMARY } />
+ ) }
</Container>
- { labelContent }
- { switchContent }
- </Container>
- <Container className = 'authorization-panel'>
- { content }
</Container>
+ { this._renderAccordion({
+ body: (
+ <DropdownSelect
+ disabled = { transcriptionRunning }
+ id = 'transcription-language-select'
+ label = { t('recording.transcriptionLanguage') }
+ onChange = { this.props.onSubtitlesLanguageChange }
+ options = { languageOptions }
+ value = { selectedLanguage ?? '' } />
+ ),
+ expanded: showTranscriptionOptions,
+ id: 'transcription-options',
+ onToggle: this._onToggleTranscriptionOptions,
+
+ // Only rendered by _renderAccordion while collapsed — skip computing it while
+ // the section is expanded.
+ summary: showTranscriptionOptions ? '' : this._getTranscriptionSummary(),
+ titleKey: 'recording.transcriptionOptions'
+ }) }
</Container>
);
}
/**
- * Renders the content for local recordings.
+ * Renders the footer buttons acting on both services at once. When only
+ * one service is running both buttons are shown: stop both stops the
+ * running one, start both starts the missing one.
*
- * @protected
* @returns {React$Component}
*/
- _renderLocalRecordingContent() {
+ _renderFooter() {
+ if (!this._shouldRenderFooter()) {
+ return null;
+ }
+
const {
- _localRecordingAvailable,
- _localRecordingNoNotification,
- _localRecordingSelfEnabled,
isValidating,
- localRecordingOnlySelf,
- onLocalRecordingSelfChange,
+ onStartBoth,
+ onStopBoth,
+ recordingRunning,
+ startRecordingDisabled,
t,
- selectedRecordingService
+ transcriptionRunning
} = this.props;
-
- if (!_localRecordingAvailable) {
- return null;
- }
+ const showStopBoth = recordingRunning || transcriptionRunning;
+ const showStartBoth = !recordingRunning || !transcriptionRunning;
+ const startBothDisabled = !recordingRunning && (startRecordingDisabled || isValidating);
+ const classes = this.props.classes ?? {};
return (
- <>
- <Container>
- <Container
- className = 'recording-header recording-header-line'>
- <Container
- className = 'recording-icon-container'>
- <Image
- alt = ''
- className = 'recording-icon'
- src = { LOCAL_RECORDING } />
- </Container>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-local'>
- { t('recording.saveLocalRecording') }
- </label>
- <Switch
- checked = { selectedRecordingService
- === RECORDING_TYPES.LOCAL }
- className = 'recording-switch'
- disabled = { isValidating }
- id = 'recording-switch-local'
- onChange = { this._onLocalRecordingSwitchChange } />
- </Container>
- </Container>
- {selectedRecordingService === RECORDING_TYPES.LOCAL && (
- <>
- {_localRecordingSelfEnabled && (
- <Container>
- <Container className = 'recording-header space-top'>
- <Container className = 'recording-icon-container file-sharing-icon-container'>
- <Image
- alt = ''
- className = 'recording-file-sharing-icon'
- src = { ICON_USERS } />
- </Container>
- <label
- className = 'recording-title'
- htmlFor = 'recording-switch-myself'>
- {t('recording.onlyRecordSelf')}
- </label>
- <Switch
- checked = { Boolean(localRecordingOnlySelf) }
- className = 'recording-switch'
- disabled = { isValidating }
- id = 'recording-switch-myself'
- onChange = { onLocalRecordingSelfChange ?? EMPTY_FUNCTION } />
- </Container>
- </Container>
- )}
- <Text className = 'local-recording-warning text'>
- {t('recording.localRecordingWarning')}
- </Text>
- {_localRecordingNoNotification && !localRecordingOnlySelf
- && <Text className = 'local-recording-warning notification'>
- {t('recording.localRecordingNoNotificationWarning')}
- </Text>
- }
- </>
- )}
- </>
-
+ <Container className = { classes.footer }>
+ { showStopBoth && (
+ <Button
+ accessibilityLabel = { t('dialog.stopBoth') }
+ labelKey = 'dialog.stopBoth'
+ onClick = { onStopBoth }
+ testId = 'recordingDialog.stopBoth'
+ type = { BUTTON_TYPES.DESTRUCTIVE } />
+ ) }
+ { showStartBoth && (
+ <Button
+ accessibilityLabel = { t('dialog.startBoth') }
+ disabled = { startBothDisabled }
+ labelKey = 'dialog.startBoth'
+ onClick = { onStartBoth }
+ testId = 'recordingDialog.startBoth'
+ type = { BUTTON_TYPES.PRIMARY } />
+ ) }
+ </Container>
);
}
}
-export default translate(connect(mapStateToProps)(StartRecordingDialogContent));
+export default withStyles(translate(connect(mapStateToProps)(StartRecordingDialogContent)), startRecordingDialogStyles);
diff --git a/react/features/recording/nudge.web.ts b/react/features/recording/nudge.web.ts
index ecbd6c8107..bdc6eaf4d6 100644
--- a/react/features/recording/nudge.web.ts
+++ b/react/features/recording/nudge.web.ts
@@ -18,8 +18,7 @@ export function getNudge(scenario: 'recording' | 'transcription', dispatch: ISto
descriptionText: `· ${i18next.t('recording.alsoTranscribe')}`,
actionNameKey: 'dialog.startTranscribing',
handler: () => dispatch(openDialog('RecordingTranscriptionDialog', RecordingTranscriptionDialog, {
- recordAudioAndVideo: false,
- initialTranscription: true
+ recordAudioAndVideo: false
}))
};
}
@@ -27,8 +26,9 @@ export function getNudge(scenario: 'recording' | 'transcription', dispatch: ISto
return {
descriptionText: `· ${i18next.t('transcribing.alsoRecord')}`,
actionNameKey: 'dialog.startRecording',
- handler: () => dispatch(openDialog('RecordingTranscriptionDialog', RecordingTranscriptionDialog, {
- initialRecording: true
- }))
+
+ // recordAudioAndVideo defaults to true, which already puts the focus on the recording
+ // section, so nothing extra needs to be passed here.
+ handler: () => dispatch(openDialog('RecordingTranscriptionDialog', RecordingTranscriptionDialog))
};
}
diff --git a/tests/pageobjects/RecordingTranscriptionDialog.ts b/tests/pageobjects/RecordingTranscriptionDialog.ts
index 28380aa324..ca8cddd41e 100644
--- a/tests/pageobjects/RecordingTranscriptionDialog.ts
+++ b/tests/pageobjects/RecordingTranscriptionDialog.ts
@@ -1,15 +1,31 @@
import BasePageObject from './BasePageObject';
const DIALOG_TITLE = '#dialog-title';
-const OK_BUTTON = '#modal-dialog-ok-button';
const CLOSE_BUTTON = '#modal-header-close-button';
-const RECORDING_SWITCH = '#recording-switch-audio-video';
-const TRANSCRIPTION_SWITCH = '#recording-switch-transcription';
-const RECORDING_SWITCH_LABEL = '[for="recording-switch-audio-video"]';
-const TRANSCRIPTION_SWITCH_LABEL = '[for="recording-switch-transcription"]';
+
+const START_RECORDING = '[data-testid="recordingDialog.startRecording"]';
+const STOP_RECORDING = '[data-testid="recordingDialog.stopRecording"]';
+const START_TRANSCRIPTION = '[data-testid="recordingDialog.startTranscription"]';
+const STOP_TRANSCRIPTION = '[data-testid="recordingDialog.stopTranscription"]';
+const START_BOTH = '[data-testid="recordingDialog.startBoth"]';
+const STOP_BOTH = '[data-testid="recordingDialog.stopBoth"]';
+
+const RECORDING_OPTIONS_HEADER = '#recording-options';
+const RECORDING_OPTIONS_BODY = '#recording-options-content';
+const TRANSCRIPTION_OPTIONS_HEADER = '#transcription-options';
+const SERVICE_SELECT = '#recording-service-select';
+const SERVICE_SELECT_MENU = '#recording-service-select-menu';
+const LANGUAGE_SELECT = '#transcription-language-select';
+const LANGUAGE_SELECT_MENU = '#transcription-language-select-menu';
+const FOLLOW_ME_RECORDER_SWITCH = '#recording-switch-follow-me';
+const FILE_SHARING_SWITCH = '#recording-switch-share';
+const LOCAL_RECORDING_ONLY_SELF_SWITCH = '#recording-switch-myself';
/**
- * Page object for the unified Recording & Transcription dialog.
+ * Page object for the unified Recording & Transcription dialog: two sections
+ * (audio & video recording, transcription), each with its own immediate
+ * start/stop button and a collapsible options accordion, plus footer buttons
+ * acting on both services at once.
*/
export default class RecordingTranscriptionDialog extends BasePageObject {
/**
@@ -37,76 +53,290 @@ export default class RecordingTranscriptionDialog extends BasePageObject {
}
/**
- * Returns the OK button text.
+ * Whether the recording section currently offers a Start button, i.e.
+ * recording is not running.
+ */
+ hasStartRecordingButton(): Promise<boolean> {
+ return this.participant.driver.$(START_RECORDING).isExisting();
+ }
+
+ /**
+ * Whether the recording section currently offers a Stop button, i.e.
+ * recording is running.
+ */
+ hasStopRecordingButton(): Promise<boolean> {
+ return this.participant.driver.$(STOP_RECORDING).isExisting();
+ }
+
+ /**
+ * Whether the transcription section currently offers a Start button.
+ */
+ hasStartTranscriptionButton(): Promise<boolean> {
+ return this.participant.driver.$(START_TRANSCRIPTION).isExisting();
+ }
+
+ /**
+ * Whether the transcription section currently offers a Stop button.
+ */
+ hasStopTranscriptionButton(): Promise<boolean> {
+ return this.participant.driver.$(STOP_TRANSCRIPTION).isExisting();
+ }
+
+ /**
+ * Whether the footer shows the "Start both" button.
+ */
+ hasStartBothButton(): Promise<boolean> {
+ return this.participant.driver.$(START_BOTH).isExisting();
+ }
+
+ /**
+ * Whether the footer shows the "Stop both" button.
+ */
+ hasStopBothButton(): Promise<boolean> {
+ return this.participant.driver.$(STOP_BOTH).isExisting();
+ }
+
+ /**
+ * Whether the recording section Start button is enabled (a usable storage
+ * service is selected).
+ */
+ isStartRecordingEnabled(): Promise<boolean> {
+ return this.participant.driver.$(START_RECORDING).isEnabled();
+ }
+
+ /**
+ * Whether the footer "Start both" button is enabled.
+ */
+ isStartBothEnabled(): Promise<boolean> {
+ return this.participant.driver.$(START_BOTH).isEnabled();
+ }
+
+ /**
+ * Starts the audio & video recording. The action applies immediately and
+ * closes the dialog.
+ */
+ async startRecording(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking start recording');
+
+ return this.participant.driver.$(START_RECORDING).click();
+ }
+
+ /**
+ * Stops the audio & video recording. The action applies immediately and
+ * closes the dialog.
+ */
+ async stopRecording(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking stop recording');
+
+ return this.participant.driver.$(STOP_RECORDING).click();
+ }
+
+ /**
+ * Starts the transcription. The action applies immediately and closes the
+ * dialog.
+ */
+ async startTranscription(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking start transcription');
+
+ return this.participant.driver.$(START_TRANSCRIPTION).click();
+ }
+
+ /**
+ * Stops the transcription. The action applies immediately and closes the
+ * dialog.
+ */
+ async stopTranscription(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking stop transcription');
+
+ return this.participant.driver.$(STOP_TRANSCRIPTION).click();
+ }
+
+ /**
+ * Starts every service which is not running yet.
*/
- getOkButtonText(): Promise<string> {
- return this.participant.driver.$(OK_BUTTON).getText();
+ async startBoth(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking start both');
+
+ return this.participant.driver.$(START_BOTH).click();
+ }
+
+ /**
+ * Stops every running service.
+ */
+ async stopBoth(): Promise<void> {
+ await this.participant.log('RecordingTranscriptionDialog: clicking stop both');
+
+ return this.participant.driver.$(STOP_BOTH).click();
+ }
+
+ /**
+ * Whether the recording options accordion exists.
+ */
+ hasRecordingOptions(): Promise<boolean> {
+ return this.participant.driver.$(RECORDING_OPTIONS_HEADER).isExisting();
+ }
+
+ /**
+ * Whether the transcription options accordion exists.
+ */
+ hasTranscriptionOptions(): Promise<boolean> {
+ return this.participant.driver.$(TRANSCRIPTION_OPTIONS_HEADER).isExisting();
+ }
+
+ /**
+ * Whether the recording options accordion is expanded.
+ */
+ async isRecordingOptionsExpanded(): Promise<boolean> {
+ return await this.participant.driver.$(RECORDING_OPTIONS_HEADER)
+ .getAttribute('aria-expanded') === 'true';
+ }
+
+ /**
+ * Whether the transcription options accordion is expanded.
+ */
+ async isTranscriptionOptionsExpanded(): Promise<boolean> {
+ return await this.participant.driver.$(TRANSCRIPTION_OPTIONS_HEADER)
+ .getAttribute('aria-expanded') === 'true';
+ }
+
+ /**
+ * Expands/collapses the recording options accordion.
+ */
+ toggleRecordingOptions(): Promise<void> {
+ return this.participant.driver.$(RECORDING_OPTIONS_HEADER).click();
+ }
+
+ /**
+ * Expands/collapses the transcription options accordion.
+ */
+ toggleTranscriptionOptions(): Promise<void> {
+ return this.participant.driver.$(TRANSCRIPTION_OPTIONS_HEADER).click();
+ }
+
+ /**
+ * Whether the storage service dropdown is visible (recording options
+ * expanded).
+ */
+ hasServiceSelect(): Promise<boolean> {
+ return this.participant.driver.$(SERVICE_SELECT).isExisting();
}
/**
- * Returns whether the OK button is enabled (not disabled).
+ * Whether the transcription language dropdown is visible (transcription
+ * options expanded).
*/
- async isOkButtonEnabled(): Promise<boolean> {
- return this.participant.driver.$(OK_BUTTON).isEnabled();
+ hasLanguageSelect(): Promise<boolean> {
+ return this.participant.driver.$(LANGUAGE_SELECT).isExisting();
}
/**
- * Returns whether the recording (audio/video) toggle exists in the dialog.
+ * The currently selected storage service, as displayed on the dropdown
+ * trigger.
*/
- hasRecordingToggle(): Promise<boolean> {
- return this.participant.driver.$(RECORDING_SWITCH).isExisting();
+ getSelectedService(): Promise<string> {
+ return this.participant.driver.$(SERVICE_SELECT).getText();
}
/**
- * Returns whether the transcription toggle exists in the dialog.
+ * The currently selected transcription language, as displayed on the
+ * dropdown trigger.
*/
- hasTranscriptionToggle(): Promise<boolean> {
- return this.participant.driver.$(TRANSCRIPTION_SWITCH).isExisting();
+ getSelectedLanguage(): Promise<string> {
+ return this.participant.driver.$(LANGUAGE_SELECT).getText();
}
/**
- * Returns whether the recording (audio/video) toggle is checked.
+ * Picks a storage service by its visible label (e.g. "Recording service",
+ * "Dropbox", "Local recording"). The recording options accordion must be
+ * expanded.
*/
- isRecordingToggleChecked(): Promise<boolean> {
- return this.participant.driver.$(RECORDING_SWITCH).isSelected();
+ selectService(label: string): Promise<void> {
+ return this._selectDropdownOption(SERVICE_SELECT, SERVICE_SELECT_MENU, label);
}
/**
- * Returns whether the transcription toggle is checked.
+ * Picks a transcription language by its visible label (e.g. "English").
+ * The transcription options accordion must be expanded.
*/
- isTranscriptionToggleChecked(): Promise<boolean> {
- return this.participant.driver.$(TRANSCRIPTION_SWITCH).isSelected();
+ selectLanguage(label: string): Promise<void> {
+ return this._selectDropdownOption(LANGUAGE_SELECT, LANGUAGE_SELECT_MENU, label);
}
/**
- * Clicks the recording (audio/video) toggle by clicking its associated label.
+ * Whether the "Recorder follows me" switch is shown (moderator with a
+ * cloud based service selected).
*/
- async clickRecordingToggle(): Promise<void> {
- await this.participant.log('RecordingTranscriptionDialog: clicking recording toggle');
+ hasFollowMeRecorderSwitch(): Promise<boolean> {
+ return this.participant.driver.$(FOLLOW_ME_RECORDER_SWITCH).isExisting();
+ }
- return this.participant.driver.$(RECORDING_SWITCH_LABEL).click();
+ /**
+ * Whether the "Recorder follows me" switch is enabled (it locks while a
+ * recording is in progress).
+ */
+ isFollowMeRecorderEnabled(): Promise<boolean> {
+ return this.participant.driver.$(FOLLOW_ME_RECORDER_SWITCH).isEnabled();
}
/**
- * Clicks the transcription toggle by clicking its associated label.
+ * Whether the "Share the recording link" switch is shown (Jitsi
+ * recording service selected and sharing is enabled server-side).
*/
- async clickTranscriptionToggle(): Promise<void> {
- await this.participant.log('RecordingTranscriptionDialog: clicking transcription toggle');
+ hasFileSharingSwitch(): Promise<boolean> {
+ return this.participant.driver.$(FILE_SHARING_SWITCH).isExisting();
+ }
- return this.participant.driver.$(TRANSCRIPTION_SWITCH_LABEL).click();
+ /**
+ * Whether the "Record only my audio and video streams" switch is shown
+ * (local recording selected).
+ */
+ hasLocalRecordingOnlySelfSwitch(): Promise<boolean> {
+ return this.participant.driver.$(LOCAL_RECORDING_ONLY_SELF_SWITCH).isExisting();
}
/**
- * Clicks the OK / "Apply changes" button to confirm.
+ * Toggles the "Record only my audio and video streams" switch.
*/
- confirm(): Promise<void> {
- return this.participant.driver.$(OK_BUTTON).click();
+ toggleLocalRecordingOnlySelfSwitch(): Promise<void> {
+ return this.participant.driver.$(LOCAL_RECORDING_ONLY_SELF_SWITCH).click();
}
/**
- * Clicks the close (X) button to dismiss the dialog without applying changes.
+ * The text content of the (expanded) recording options accordion body,
+ * e.g. to check for the local-recording warning texts.
+ */
+ getRecordingOptionsBodyText(): Promise<string> {
+ return this.participant.driver.$(RECORDING_OPTIONS_BODY).getText();
+ }
+
+ /**
+ * Clicks the close (X) button to dismiss the dialog.
*/
cancel(): Promise<void> {
return this.participant.driver.$(CLOSE_BUTTON).click();
}
+
+ /**
+ * Opens the given dropdown and picks the option with the given visible
+ * label.
+ */
+ private async _selectDropdownOption(
+ triggerSelector: string, menuSelector: string, optionLabel: string): Promise<void> {
+ const driver = this.participant.driver;
+
+ await driver.$(triggerSelector).click();
+
+ await driver.$(menuSelector).waitForExist({
+ timeout: 3000,
+ timeoutMsg: 'Dropdown menu did not open'
+ });
+
+ const option = driver.$(menuSelector).$(`[role="menuitem"][aria-label="${optionLabel}"]`);
+
+ await option.waitForExist({
+ timeout: 3000,
+ timeoutMsg: `Dropdown option "${optionLabel}" not found`
+ });
+ await option.click();
+ }
}
diff --git a/tests/pageobjects/Toolbar.ts b/tests/pageobjects/Toolbar.ts
index ab35f08593..380f65b05d 100644
--- a/tests/pageobjects/Toolbar.ts
+++ b/tests/pageobjects/Toolbar.ts
@@ -6,6 +6,7 @@ const RECORDING = 'Record & Transcribe';
// Non-moderators (who can only do local recording) get a "Record" button instead of the
// moderator's "Record & Transcribe" — see AbstractRecordButton._getAccessibilityLabel().
const RECORDING_NON_MODERATOR = 'Record';
+const LIVE_STREAMING = 'Start live stream';
const AUDIO_UNMUTE = 'Unmute microphone';
const CHAT = 'Open chat';
const CLOSE_CHAT = 'Close chat';
@@ -89,6 +90,23 @@ export default class Toolbar extends BasePageObject {
return this.clickButtonInOverflowMenu(RECORDING);
}
+ /**
+ * Returns whether the live streaming button exists in the DOM for this participant.
+ *
+ * @returns {Promise<boolean>}
+ */
+ async hasLiveStreamingButton(): Promise<boolean> {
+ // Same reasoning as hasRecordingButton: the button lives in the overflow menu, so open it
+ // first to make sure it is in the DOM regardless of whether it got promoted to the main bar.
+ await this.openOverflowMenu();
+
+ const exists = await this.getButton(LIVE_STREAMING).isExisting();
+
+ await this.closeOverflowMenu();
+
+ return exists;
+ }
+
/**
* Clicks audio mute button.
*
diff --git a/tests/specs/jaas/recordingTranscription.spec.ts b/tests/specs/jaas/recordingTranscription.spec.ts
index 1e86fd9c46..f2b0e79ad6 100644
--- a/tests/specs/jaas/recordingTranscription.spec.ts
+++ b/tests/specs/jaas/recordingTranscription.spec.ts
@@ -274,7 +274,7 @@ describe('Recording & transcription nudge notifications', () => {
// ─── Manage-mode (session active) dialog tests ───────────────────────────────
describe('Recording & transcription dialog — manage mode', () => {
- it('dialog opens with recording toggle ON when recording is running', async () => {
+ it('recording section shows Stop when recording is running', async () => {
if (!expectations.jaas.recordingEnabled) {
return;
}
@@ -293,8 +293,12 @@ describe('Recording & transcription dialog — manage mode', () => {
await dialog.waitForDisplay();
- expect(await dialog.isRecordingToggleChecked()).toBe(true);
- expect(await dialog.isTranscriptionToggleChecked()).toBe(false);
+ expect(await dialog.hasStopRecordingButton()).toBe(true);
+ expect(await dialog.hasStartTranscriptionButton()).toBe(true);
+
+ // Mixed state — the footer offers both bulk actions.
+ expect(await dialog.hasStopBothButton()).toBe(true);
+ expect(await dialog.hasStartBothButton()).toBe(true);
await dialog.cancel();
} finally {
@@ -304,7 +308,7 @@ describe('Recording & transcription dialog — manage mode', () => {
}
});
- it('dialog opens with transcription toggle ON when transcription is running', async () => {
+ it('transcription section shows Stop when transcription is running', async () => {
if (!expectations.jaas.transcriptionEnabled) {
return;
}
@@ -323,8 +327,12 @@ describe('Recording & transcription dialog — manage mode', () => {
await dialog.waitForDisplay();
- expect(await dialog.isTranscriptionToggleChecked()).toBe(true);
- expect(await dialog.isRecordingToggleChecked()).toBe(false);
+ expect(await dialog.hasStopTranscriptionButton()).toBe(true);
+ expect(await dialog.hasStartRecordingButton()).toBe(true);
+
+ // Mixed state — the footer offers both bulk actions.
+ expect(await dialog.hasStopBothButton()).toBe(true);
+ expect(await dialog.hasStartBothButton()).toBe(true);
await dialog.cancel();
} finally {
@@ -334,7 +342,7 @@ describe('Recording & transcription dialog — manage mode', () => {
}
});
- it('dialog opens with both toggles ON when both services are running', async () => {
+ it('both sections show Stop and footer shows only "Stop both" when both run', async () => {
if (!expectations.jaas.recordingEnabled || !expectations.jaas.transcriptionEnabled) {
return;
}
@@ -357,11 +365,44 @@ describe('Recording & transcription dialog — manage mode', () => {
await dialog.waitForDisplay();
- expect(await dialog.isRecordingToggleChecked()).toBe(true);
- expect(await dialog.isTranscriptionToggleChecked()).toBe(true);
+ expect(await dialog.hasStopRecordingButton()).toBe(true);
+ expect(await dialog.hasStopTranscriptionButton()).toBe(true);
+ expect(await dialog.hasStopBothButton()).toBe(true);
+ expect(await dialog.hasStartBothButton()).toBe(false);
+
+ await dialog.cancel();
+ } finally {
+ await p.switchToMainFrame();
+ await p.getIframeAPI().executeCommand('stopRecording', 'file');
+ await waitForRecordingStopExecuted(p);
+ }
+ });
+
+ it('"Recorder follows me" is locked while recording runs', async () => {
+ if (!expectations.jaas.recordingEnabled) {
+ return;
+ }
- // Nothing changed yet — OK must be disabled.
- expect(await dialog.isOkButtonEnabled()).toBe(false);
+ const p = await joinAsModerator();
+
+ try {
+ await startFileRecording(p, { mode: 'file' });
+ await p.switchToIFrame();
+
+ await waitForRecordingRunning(p);
+
+ await p.getToolbar().clickRecordingButton();
+
+ const dialog = p.getRecordingTranscriptionDialog();
+
+ await dialog.waitForDisplay();
+ await dialog.toggleRecordingOptions();
+
+ // The switch only shows for moderators with a cloud service selected.
+ if (await dialog.hasFollowMeRecorderSwitch()) {
+ // The recorder cannot pick up the change mid-session.
+ expect(await dialog.isFollowMeRecorderEnabled()).toBe(false);
+ }
await dialog.cancel();
} finally {
@@ -388,20 +429,14 @@ describe('Recording & transcription dialog — manage mode', () => {
await waitForRecordingRunning(p);
await waitForTranscriptionRunning(p);
- // Open dialog: both toggles on.
await p.getToolbar().clickRecordingButton();
const dialog = p.getRecordingTranscriptionDialog();
await dialog.waitForDisplay();
- // Turn transcription off, leave recording on.
- await dialog.clickTranscriptionToggle();
- expect(await dialog.isTranscriptionToggleChecked()).toBe(false);
- expect(await dialog.isRecordingToggleChecked()).toBe(true);
- expect(await dialog.isOkButtonEnabled()).toBe(true);
-
- await dialog.confirm();
+ // Stop only transcription — the action applies immediately and closes the dialog.
+ await dialog.stopTranscription();
// Transcription should stop.
await waitForTranscriptionStopped(p);
@@ -438,20 +473,14 @@ describe('Recording & transcription dialog — manage mode', () => {
await waitForRecordingRunning(p);
await waitForTranscriptionRunning(p);
- // Open dialog: both toggles on.
await p.getToolbar().clickRecordingButton();
const dialog = p.getRecordingTranscriptionDialog();
await dialog.waitForDisplay();
- // Turn recording off, leave transcription on.
- await dialog.clickRecordingToggle();
- expect(await dialog.isRecordingToggleChecked()).toBe(false);
- expect(await dialog.isTranscriptionToggleChecked()).toBe(true);
- expect(await dialog.isOkButtonEnabled()).toBe(true);
-
- await dialog.confirm();
+ // Stop only recording — the action applies immediately and closes the dialog.
+ await dialog.stopRecording();
// Recording should stop.
await waitForRecordingStopped(p);
@@ -468,6 +497,39 @@ describe('Recording & transcription dialog — manage mode', () => {
await waitForRecordingStopExecuted(p, true);
}
});
+
+ it('"Stop both" stops recording and transcription together', async () => {
+ if (!expectations.jaas.recordingEnabled || !expectations.jaas.transcriptionEnabled) {
+ return;
+ }
+
+ const p = await joinAsModerator();
+
+ try {
+ await startFileRecording(p, {
+ mode: 'file',
+ transcription: true
+ });
+ await p.switchToIFrame();
+
+ await waitForRecordingRunning(p);
+ await waitForTranscriptionRunning(p);
+
+ await p.getToolbar().clickRecordingButton();
+
+ const dialog = p.getRecordingTranscriptionDialog();
+
+ await dialog.waitForDisplay();
+ await dialog.stopBoth();
+
+ await waitForRecordingStopped(p);
+ await waitForTranscriptionStopped(p);
+ } finally {
+ await p.switchToMainFrame();
+ await p.getIframeAPI().executeCommand('stopRecording', 'file', true);
+ await waitForRecordingStopExecuted(p, true);
+ }
+ });
});
// ─── Button visibility ────────────────────────────────────────────────────────
diff --git a/tests/specs/misc/recordingDialogConfig.spec.ts b/tests/specs/misc/recordingDialogConfig.spec.ts
new file mode 100644
index 0000000000..6c732ef935
--- /dev/null
+++ b/tests/specs/misc/recordingDialogConfig.spec.ts
@@ -0,0 +1,371 @@
+import { setTestProperties } from '../../helpers/TestProperties';
+import { config as testsConfig } from '../../helpers/TestsConfig';
+import { joinMuc } from '../../helpers/joinMuc';
+import { generateToken } from '../../helpers/token';
+
+/**
+ * Joins (or rejoins) p1 as a moderator with the given config.js overrides, granting the
+ * recording/transcription/livestreaming JWT feature claims by default (see token.ts) so that the
+ * dialog's behavior reflects only the config flags under test, not JWT feature availability.
+ *
+ * A fresh join is required (rather than ensureOneParticipant, which no-ops if already in the
+ * conference) because each test in this file exercises a different config.js combination.
+ */
+async function joinWithConfig(configOverwrite: Record<string, unknown>): Promise<void> {
+ await joinMuc({
+ name: 'p1',
+ token: generateToken({ moderator: true })
+ }, { configOverwrite });
+}
+
+/**
+ * Mirrors LocalRecordingManager.isSupported() plus the embedding guard that
+ * supportsLocalRecording() adds — the same probe recordingButtonVisibility.spec.ts uses, because
+ * these browser capability gates are frequently unmet in the automated test browser regardless of
+ * the localRecording.disable config value.
+ */
+async function isLocalRecordingSupportedByBrowser(): Promise<boolean> {
+ return ctx.p1.execute(() => {
+ const browser = JitsiMeetJS.util.browser;
+ const PREFERRED_MEDIA_TYPE = 'video/webm;codecs=vp8,opus';
+
+ const isSupported = browser.isChromiumBased()
+ && !browser.isElectron()
+ && !browser.isReactNative()
+ && !browser.isMobileDevice()
+
+ // @ts-ignore
+ && Boolean(navigator.mediaDevices.setCaptureHandleConfig)
+
+ // @ts-ignore
+ && typeof window.showSaveFilePicker !== 'undefined'
+ && MediaRecorder.isTypeSupported(PREFERRED_MEDIA_TYPE);
+
+ let embeddedOk = true;
+
+ try {
+ if (window.self !== window.top) {
+ embeddedOk = window.self.location.host === window.parent.location.host;
+ }
+ } catch (e) {
+ embeddedOk = false;
+ }
+
+ return isSupported && embeddedOk;
+ });
+}
+
+/**
+ * Fakes a "recording running" / "transcription running" state by dispatching the same low-level,
+ * side-effect-free redux actions the app's own middleware dispatches once a session is actually
+ * running, without going through the real start flow — which would either need a Jibri/Jigasi
+ * backend (cloud recording/transcription) or hit the browser's native showSaveFilePicker dialog
+ * (local recording), neither of which this environment can drive.
+ *
+ * - "recording running": SET_LOCAL_RECORDING_RUNNING only sets the reducer's localRecordingRunning
+ * flag (recording/middleware.ts has no side-effecting case for it, unlike START_LOCAL_RECORDING);
+ * isRecordingRunning() ORs it with cloud-recording state, so the dialog can't tell it apart from a
+ * real recording session.
+ * - "transcription running": isRecorderTranscriptionsRunning() requires BOTH
+ * features/transcribing.isTranscribing (set by TRANSCRIBER_JOINED/LEFT, a pure reducer
+ * transition — see transcribing/reducer.ts) AND the conference metadata's
+ * recording.isTranscribingEnabled flag (set via UPDATE_CONFERENCE_METADATA).
+ */
+async function setRunningState(recordingRunning: boolean, transcriptionRunning: boolean): Promise<void> {
+ await ctx.p1.execute((recording: boolean, transcription: boolean) => {
+ const { dispatch } = APP.store;
+
+ dispatch({ type: 'SET_LOCAL_RECORDING_RUNNING',
+ running: recording });
+
+ if (transcription) {
+ dispatch({ type: 'TRANSCRIBER_JOINED',
+ transcriberJID: 'fake-transcriber-for-testing' });
+ dispatch({
+ type: 'UPDATE_CONFERENCE_METADATA',
+ metadata: { recording: { isTranscribingEnabled: true } }
+ });
+ } else {
+ dispatch({ type: 'TRANSCRIBER_LEFT' });
+ dispatch({ type: 'UPDATE_CONFERENCE_METADATA',
+ metadata: null });
+ }
+ }, recordingRunning, transcriptionRunning);
+}
+
+setTestProperties(__filename, {
+ description: 'Recording & Transcription dialog rendering across config.js flag combinations',
+ usesBrowsers: [ 'p1' ]
+});
+
+/*
+ * Full 2^4 matrix over the four independently togglable config.js flags: recordingService.enabled,
+ * transcription.enabled, localRecording.disable and liveStreaming.enabled. Expected behavior for
+ * each combination, derived from the source (AbstractStartRecordingDialog(Content), recording/
+ * functions.ts#getRecordButtonProps, LiveStream/functions.ts#isLiveStreamingButtonVisible):
+ *
+ * - The moderator token grants the recording/transcription/livestreaming JWT feature claims
+ * unconditionally (see joinWithConfig), so getRecordButtonProps() always takes its
+ * "isJwtFeatureEnabled(..., RECORDING)" branch once local recording is unavailable — meaning the
+ * toolbar button's visibility (and therefore whether the recording section can be inspected at
+ * all) reduces to recordingService.enabled || localRecordingAvailable, and does NOT by itself
+ * depend on transcription.enabled (that branch of the priority chain is never reached while the
+ * RECORDING claim is granted).
+ * - Whenever the dialog *can* open, the recording section always renders (same
+ * recordingService.enabled || localRecordingAvailable condition) — what changes is which
+ * storage service ends up selected by default: "Recording service" takes priority over "Local
+ * recording" in the dialog's constructor.
+ * - The transcription section, its Start button, and the footer's "Start both" button are each
+ * governed purely by transcription.enabled (independent of the other three flags, since nothing
+ * is actually started in these tests).
+ * - The Live Streaming toolbar button is fully orthogonal: only liveStreaming.enabled matters.
+ *
+ * localRecordingAvailable also depends on browser capabilities (MediaRecorder/File System Access
+ * support) that are frequently unmet in the automated test browser — probed once up front, exactly
+ * like recordingButtonVisibility.spec.ts does, so the per-combination expectations stay accurate
+ * regardless of what the test browser actually supports.
+ */
+describe('Recording dialog config matrix — recording × transcription × local recording × live streaming', () => {
+ // A const-bound holder object, rather than a reassigned `let`, so the it() closures created
+ // inside the loop below don't trip @typescript-eslint/no-loop-func — only its property (set
+ // once, in 'setup', before any of the loop's tests run) actually changes.
+ const localRecordingSupport = { byBrowser: false };
+
+ it('setup', async () => {
+ if (!testsConfig.jwt.kid || !testsConfig.jwt.privateKeyPath) {
+ ctx.skipSuiteTests = 'JWT signing is not configured in this environment '
+ + '(JWT_KID/JWT_PRIVATE_KEY_PATH)';
+
+ return;
+ }
+
+ await joinWithConfig({});
+ localRecordingSupport.byBrowser = await isLocalRecordingSupportedByBrowser();
+ });
+
+ const BOOLEANS = [ true, false ];
+
+ for (const recordingServiceEnabled of BOOLEANS) {
+ for (const transcriptionEnabled of BOOLEANS) {
+ for (const localRecordingDisabled of BOOLEANS) {
+ for (const liveStreamingEnabled of BOOLEANS) {
+ const title = `recordingService.enabled=${recordingServiceEnabled} `
+ + `transcription.enabled=${transcriptionEnabled} `
+ + `localRecording.disable=${localRecordingDisabled} `
+ + `liveStreaming.enabled=${liveStreamingEnabled}`;
+
+ it(title, async () => {
+ await joinWithConfig({
+ recordingService: { enabled: recordingServiceEnabled },
+ transcription: { enabled: transcriptionEnabled },
+ localRecording: { disable: localRecordingDisabled },
+ liveStreaming: { enabled: liveStreamingEnabled }
+ });
+
+ const p1 = ctx.p1;
+
+ // Orthogonal to the other three flags — always checked.
+ expect(await p1.getToolbar().hasLiveStreamingButton()).toBe(liveStreamingEnabled);
+
+ const localRecordingAvailable = !localRecordingDisabled && localRecordingSupport.byBrowser;
+ const dialogCanOpen = recordingServiceEnabled || localRecordingAvailable;
+
+ expect(await p1.getToolbar().hasRecordingButton()).toBe(dialogCanOpen);
+
+ if (!dialogCanOpen) {
+ // Nothing else is inspectable: the dialog cannot be opened at all.
+ return;
+ }
+
+ const dialog = p1.getRecordingTranscriptionDialog();
+
+ await p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+
+ // The recording section always renders here (same condition as
+ // dialogCanOpen); which service ends up selected is what differs.
+ await dialog.toggleRecordingOptions();
+ expect(await dialog.getSelectedService())
+ .toBe(recordingServiceEnabled ? 'Recording service' : 'Local recording');
+
+ expect(await dialog.hasTranscriptionOptions()).toBe(transcriptionEnabled);
+ expect(await dialog.hasStartTranscriptionButton()).toBe(transcriptionEnabled);
+
+ // The footer only makes sense when both sections are present; the recording
+ // section is always present on this branch, so this reduces to
+ // transcriptionEnabled.
+ expect(await dialog.hasStartBothButton()).toBe(transcriptionEnabled);
+
+ await dialog.cancel();
+ });
+ }
+ }
+ }
+ }
+});
+
+/*
+ * With both services enabled and available, the 2x2 matrix of which one is actually running.
+ * Expectations are read directly off web/StartRecordingDialogContent.tsx: each section swaps its
+ * own Start/Stop button independently, and the footer's _renderFooter() shows "Stop both" whenever
+ * ANY service is running and "Start both" whenever ANY service is NOT running — so in a mixed state
+ * (one running, one not) BOTH footer buttons render at once: "Stop both" stops the running one,
+ * "Start both" starts the missing one.
+ */
+describe('Recording dialog config — mixed running state (recording vs transcription)', () => {
+ it('setup', async () => {
+ if (!testsConfig.jwt.kid || !testsConfig.jwt.privateKeyPath) {
+ ctx.skipSuiteTests = 'JWT signing is not configured in this environment '
+ + '(JWT_KID/JWT_PRIVATE_KEY_PATH)';
+ }
+ });
+
+ const RUNNING_STATE_COMBINATIONS: Array<[boolean, boolean]> = [
+ [ false, false ],
+ [ true, false ],
+ [ false, true ],
+ [ true, true ]
+ ];
+
+ for (const [ recordingRunning, transcriptionRunning ] of RUNNING_STATE_COMBINATIONS) {
+ it(`recording running=${recordingRunning}, transcription running=${transcriptionRunning}`, async () => {
+ await joinWithConfig({
+ recordingService: { enabled: true },
+ transcription: { enabled: true }
+ });
+ await setRunningState(recordingRunning, transcriptionRunning);
+
+ const dialog = ctx.p1.getRecordingTranscriptionDialog();
+
+ await ctx.p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+
+ expect(await dialog.hasStartRecordingButton()).toBe(!recordingRunning);
+ expect(await dialog.hasStopRecordingButton()).toBe(recordingRunning);
+ expect(await dialog.hasStartTranscriptionButton()).toBe(!transcriptionRunning);
+ expect(await dialog.hasStopTranscriptionButton()).toBe(transcriptionRunning);
+
+ expect(await dialog.hasStopBothButton()).toBe(recordingRunning || transcriptionRunning);
+ expect(await dialog.hasStartBothButton()).toBe(!recordingRunning || !transcriptionRunning);
+
+ await dialog.cancel();
+ });
+ }
+});
+
+describe('Recording dialog config — recordingService.sharingEnabled', () => {
+ it('setup', async () => {
+ if (!testsConfig.jwt.kid || !testsConfig.jwt.privateKeyPath) {
+ ctx.skipSuiteTests = 'JWT signing is not configured in this environment '
+ + '(JWT_KID/JWT_PRIVATE_KEY_PATH)';
+ }
+ });
+
+ it('sharingEnabled: true shows the "share the recording link" switch', async () => {
+ await joinWithConfig({
+ recordingService: {
+ enabled: true,
+ sharingEnabled: true
+ }
+ });
+
+ const dialog = ctx.p1.getRecordingTranscriptionDialog();
+
+ await ctx.p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+ await dialog.toggleRecordingOptions();
+
+ expect(await dialog.getSelectedService()).toBe('Recording service');
+ expect(await dialog.hasFileSharingSwitch()).toBe(true);
+
+ await dialog.cancel();
+ });
+
+ it('sharingEnabled: false hides the "share the recording link" switch', async () => {
+ await joinWithConfig({
+ recordingService: {
+ enabled: true,
+ sharingEnabled: false
+ }
+ });
+
+ const dialog = ctx.p1.getRecordingTranscriptionDialog();
+
+ await ctx.p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+ await dialog.toggleRecordingOptions();
+
+ expect(await dialog.getSelectedService()).toBe('Recording service');
+ expect(await dialog.hasFileSharingSwitch()).toBe(false);
+
+ await dialog.cancel();
+ });
+});
+
+describe('Recording dialog config — localRecording.notifyAllParticipants', () => {
+ const NOTIFICATION_WARNING = 'will not be announced to other participants';
+
+ let localRecordingSupported: boolean;
+
+ it('setup', async () => {
+ if (!testsConfig.jwt.kid || !testsConfig.jwt.privateKeyPath) {
+ ctx.skipSuiteTests = 'JWT signing is not configured in this environment '
+ + '(JWT_KID/JWT_PRIVATE_KEY_PATH)';
+
+ return;
+ }
+
+ await joinWithConfig({
+ localRecording: {
+ disable: false,
+ notifyAllParticipants: true
+ },
+ recordingService: { enabled: false }
+ });
+ localRecordingSupported = await isLocalRecordingSupportedByBrowser();
+ });
+
+ it('notifyAllParticipants: true — no "will not be announced" warning is shown', async () => {
+ if (!localRecordingSupported) {
+ return;
+ }
+
+ const dialog = ctx.p1.getRecordingTranscriptionDialog();
+
+ await ctx.p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+ await dialog.toggleRecordingOptions();
+
+ expect(await dialog.getRecordingOptionsBodyText()).not.toContain(NOTIFICATION_WARNING);
+
+ await dialog.cancel();
+ });
+
+ it('notifyAllParticipants: false — the warning clears once "record only myself" is on', async () => {
+ if (!localRecordingSupported) {
+ return;
+ }
+
+ await joinWithConfig({
+ localRecording: {
+ disable: false,
+ notifyAllParticipants: false
+ },
+ recordingService: { enabled: false }
+ });
+
+ const dialog = ctx.p1.getRecordingTranscriptionDialog();
+
+ await ctx.p1.getToolbar().clickRecordingButton();
+ await dialog.waitForDisplay();
+ await dialog.toggleRecordingOptions();
+
+ expect(await dialog.getRecordingOptionsBodyText()).toContain(NOTIFICATION_WARNING);
+
+ await dialog.toggleLocalRecordingOnlySelfSwitch();
+
+ expect(await dialog.getRecordingOptionsBodyText()).not.toContain(NOTIFICATION_WARNING);
+
+ await dialog.cancel();
+ });
+});
diff --git a/tests/specs/misc/recordingTranscriptionDialog.spec.ts b/tests/specs/misc/recordingTranscriptionDialog.spec.ts
index de0d5c656c..65253243de 100644
--- a/tests/specs/misc/recordingTranscriptionDialog.spec.ts
+++ b/tests/specs/misc/recordingTranscriptionDialog.spec.ts
@@ -1,21 +1,6 @@
import { setTestProperties } from '../../helpers/TestProperties';
import { expectations } from '../../helpers/expectations';
import { ensureOneParticipant } from '../../helpers/participants';
-import RecordingTranscriptionDialog from '../../pageobjects/RecordingTranscriptionDialog';
-
-/**
- * Turns both toggles off so the selection matches the idle (nothing-running) state. This makes the
- * OK button assertions deterministic regardless of whether the deployment pre-checks transcription
- * via autoTranscribeOnRecord (which JaaS forces server-side).
- */
-async function clearToggles(dialog: RecordingTranscriptionDialog): Promise<void> {
- if (await dialog.isRecordingToggleChecked()) {
- await dialog.clickRecordingToggle();
- }
- if (await dialog.isTranscriptionToggleChecked()) {
- await dialog.clickTranscriptionToggle();
- }
-}
setTestProperties(__filename, {
description: 'Unified Recording & Transcription dialog structure',
@@ -53,98 +38,104 @@ describe('Recording & Transcription dialog', () => {
await dialog.cancel();
});
- it('OK button reads "Start recording" when nothing is running', async () => {
+ it('both sections offer Start buttons when nothing is running', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- // Nothing is running yet, so the primary action starts a service rather than applying changes.
- expect(await dialog.getOkButtonText()).toBe('Start recording');
+ expect(await dialog.hasStartRecordingButton()).toBe(true);
+ expect(await dialog.hasStartTranscriptionButton()).toBe(true);
+ expect(await dialog.hasStopRecordingButton()).toBe(false);
+ expect(await dialog.hasStopTranscriptionButton()).toBe(false);
await dialog.cancel();
});
- it('dialog contains recording and transcription toggles', async () => {
+ it('footer shows only "Start both" when nothing is running', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- expect(await dialog.hasRecordingToggle()).toBe(true);
- expect(await dialog.hasTranscriptionToggle()).toBe(true);
+ expect(await dialog.hasStartBothButton()).toBe(true);
+ expect(await dialog.hasStopBothButton()).toBe(false);
await dialog.cancel();
});
- it('OK button is disabled when no service is selected', async () => {
+ it('start buttons are enabled when a recording service is available', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- // With nothing running and both toggles off, the selection matches the running state —
- // there is nothing to apply.
- await clearToggles(dialog);
- expect(await dialog.isOkButtonEnabled()).toBe(false);
+ expect(await dialog.isStartRecordingEnabled()).toBe(true);
+ expect(await dialog.isStartBothEnabled()).toBe(true);
await dialog.cancel();
});
- it('OK button enables after toggling recording on', async () => {
+ it('options accordions are collapsed by default', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- await clearToggles(dialog);
- expect(await dialog.isOkButtonEnabled()).toBe(false);
+ expect(await dialog.hasRecordingOptions()).toBe(true);
+ expect(await dialog.hasTranscriptionOptions()).toBe(true);
+ expect(await dialog.isRecordingOptionsExpanded()).toBe(false);
+ expect(await dialog.isTranscriptionOptionsExpanded()).toBe(false);
- await dialog.clickRecordingToggle();
-
- expect(await dialog.isRecordingToggleChecked()).toBe(true);
- expect(await dialog.isOkButtonEnabled()).toBe(true);
+ // The dropdowns are only rendered once the accordions are expanded.
+ expect(await dialog.hasServiceSelect()).toBe(false);
+ expect(await dialog.hasLanguageSelect()).toBe(false);
await dialog.cancel();
});
- it('OK button enables after toggling transcription on', async () => {
+ it('expanding recording options reveals the storage service dropdown', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- await clearToggles(dialog);
- expect(await dialog.isOkButtonEnabled()).toBe(false);
+ await dialog.toggleRecordingOptions();
+ expect(await dialog.isRecordingOptionsExpanded()).toBe(true);
+ expect(await dialog.hasServiceSelect()).toBe(true);
- await dialog.clickTranscriptionToggle();
+ // A service is preselected — the trigger shows its name.
+ expect((await dialog.getSelectedService()).length).toBeGreaterThan(0);
- expect(await dialog.isTranscriptionToggleChecked()).toBe(true);
- expect(await dialog.isOkButtonEnabled()).toBe(true);
+ // Collapsing hides the options again.
+ await dialog.toggleRecordingOptions();
+ expect(await dialog.isRecordingOptionsExpanded()).toBe(false);
+ expect(await dialog.hasServiceSelect()).toBe(false);
await dialog.cancel();
});
- it('toggling and then toggling back disables OK again', async () => {
+ it('expanding transcription options allows changing the language', async () => {
const p1 = ctx.p1;
const dialog = p1.getRecordingTranscriptionDialog();
await p1.getToolbar().clickRecordingButton();
await dialog.waitForDisplay();
- await clearToggles(dialog);
+ await dialog.toggleTranscriptionOptions();
+ expect(await dialog.isTranscriptionOptionsExpanded()).toBe(true);
+ expect(await dialog.hasLanguageSelect()).toBe(true);
- await dialog.clickRecordingToggle();
- expect(await dialog.isOkButtonEnabled()).toBe(true);
+ await dialog.selectLanguage('French');
+ expect(await dialog.getSelectedLanguage()).toBe('French');
- // Toggle back to original state — should no longer differ from running state.
- await dialog.clickRecordingToggle();
- expect(await dialog.isOkButtonEnabled()).toBe(false);
+ await dialog.selectLanguage('English');
+ expect(await dialog.getSelectedLanguage()).toBe('English');
await dialog.cancel();
});