Parcourir la source

feat(recording) - Show recording started notification to the initiator (#8359)

* Show recording started notification to the initiator

* Translate 'recording.on' language key for English and Turkish
Translate 'liveStreaming.on' language key for English and Turkish
j8
Saygun ICYUZ il y a 4 ans
Parent
révision
067610b3fd
Aucun compte lié à l'adresse e-mail de l'auteur

+ 2
- 2
lang/main-enGB.json Voir le fichier

@@ -380,7 +380,7 @@
380 380
         "getStreamKeyManually": "We weren’t able to fetch any live streams. Try getting your live stream key from YouTube.",
381 381
         "invalidStreamKey": "Live stream key may be incorrect.",
382 382
         "off": "Live Streaming stopped",
383
-        "on": "Live Streaming",
383
+        "on": "Live Streaming started",
384 384
         "pending": "Starting Live Stream…",
385 385
         "serviceName": "Live Streaming service",
386 386
         "signedInAs": "You are currently signed in as:",
@@ -497,7 +497,7 @@
497 497
         "live": "LIVE",
498 498
         "loggedIn": "Logged in as {{userName}}",
499 499
         "off": "Recording stopped",
500
-        "on": "Recording",
500
+        "on": "Recording started",
501 501
         "pending": "Preparing to record the meeting…",
502 502
         "rec": "REC",
503 503
         "serviceDescription": "Your recording will be saved by the recording service",

+ 3
- 3
lang/main-tr.json Voir le fichier

@@ -404,7 +404,7 @@
404 404
         "invalidStreamKey": "Canlı akış anahtarı yanlış olabilir.",
405 405
         "off": "Canlı Akış durduruldu",
406 406
         "offBy": "{{name}} canlı akışı durdurdu",
407
-        "on": "Canlı Akış",
407
+        "on": "Canlı Akış başlatıldı",
408 408
         "onBy": "{{name}} canlı akışı başlattı",
409 409
         "pending": "Canlı Akış başlatılıyor...",
410 410
         "serviceName": "Canlı Akış hizmeti",
@@ -564,7 +564,7 @@
564 564
         "live": "CANLI",
565 565
         "loggedIn": "{{userName}} olarak giriş yapıldı",
566 566
         "off": "Kayıt durdu",
567
-        "on": "Kaydediliyor",
567
+        "on": "Kayıt başladı",
568 568
         "pending": "Toplantıyı kaydetmeye hazırlanıyor ...",
569 569
         "rec": "KAYIT",
570 570
         "serviceDescription": "Kaydınız kayıt hizmeti tarafından kaydedilecektir",
@@ -844,7 +844,7 @@
844 844
         "sendFeedback": "Geri bildirim gönder",
845 845
         "terms": "Kurallar",
846 846
         "title": "Güvenli, tüm özelliklere erişimli ve tamamen ücretsiz görüntülü arama"
847
-       
847
+
848 848
     },
849 849
 
850 850
     "lonelyMeetingExperience": {

+ 2
- 2
lang/main.json Voir le fichier

@@ -416,7 +416,7 @@
416 416
         "invalidStreamKey": "Live stream key may be incorrect.",
417 417
         "off": "Live Streaming stopped",
418 418
         "offBy": "{{name}} stopped the live streaming",
419
-        "on": "Live Streaming",
419
+        "on": "Live Streaming started",
420 420
         "onBy": "{{name}} started the live streaming",
421 421
         "pending": "Starting Live Stream...",
422 422
         "serviceName": "Live Streaming service",
@@ -596,7 +596,7 @@
596 596
         "loggedIn": "Logged in as {{userName}}",
597 597
         "off": "Recording stopped",
598 598
         "offBy": "{{name}} stopped the recording",
599
-        "on": "Recording",
599
+        "on": "Recording started",
600 600
         "onBy": "{{name}} started the recording",
601 601
         "pending": "Preparing to record the meeting...",
602 602
         "rec": "REC",

+ 2
- 2
react/features/recording/actions.any.js Voir le fichier

@@ -147,11 +147,11 @@ export function showStartedRecordingNotification(streamType: string, participant
147 147
         = streamType === JitsiMeetJS.constants.recording.mode.STREAM;
148 148
     const descriptionArguments = { name: participantName };
149 149
     const dialogProps = isLiveStreaming ? {
150
-        descriptionKey: 'liveStreaming.onBy',
150
+        descriptionKey: participantName ? 'liveStreaming.onBy' : 'liveStreaming.on',
151 151
         descriptionArguments,
152 152
         titleKey: 'dialog.liveStreaming'
153 153
     } : {
154
-        descriptionKey: 'recording.onBy',
154
+        descriptionKey: participantName ? 'recording.onBy' : 'recording.on',
155 155
         descriptionArguments,
156 156
         titleKey: 'dialog.recording'
157 157
     };

+ 4
- 5
react/features/recording/middleware.js Voir le fichier

@@ -155,13 +155,12 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
155 155
 
156 156
             if (updatedSessionData.status === ON
157 157
                 && (!oldSessionData || oldSessionData.status !== ON)) {
158
-                if (initiator) {
159
-                    const initiatorName = initiator && getParticipantDisplayName(getState, initiator.getId());
160
-
161
-                    initiatorName && dispatch(showStartedRecordingNotification(mode, initiatorName));
162
-                } else if (typeof recordingLimit === 'object') {
158
+                if (typeof recordingLimit === 'object') {
163 159
                     // Show notification with additional information to the initiator.
164 160
                     dispatch(showRecordingLimitNotification(mode));
161
+                } else {
162
+                    dispatch(showStartedRecordingNotification(
163
+                        mode, initiator && getParticipantDisplayName(getState, initiator.getId())));
165 164
                 }
166 165
 
167 166
 

Chargement…
Annuler
Enregistrer