Browse 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 4 years ago
parent
commit
067610b3fd
No account linked to committer's email address

+ 2
- 2
lang/main-enGB.json View File

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

+ 3
- 3
lang/main-tr.json View File

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

+ 2
- 2
lang/main.json View File

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

+ 2
- 2
react/features/recording/actions.any.js View File

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

+ 4
- 5
react/features/recording/middleware.js View File

155
 
155
 
156
             if (updatedSessionData.status === ON
156
             if (updatedSessionData.status === ON
157
                 && (!oldSessionData || oldSessionData.status !== ON)) {
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
                     // Show notification with additional information to the initiator.
159
                     // Show notification with additional information to the initiator.
164
                     dispatch(showRecordingLimitNotification(mode));
160
                     dispatch(showRecordingLimitNotification(mode));
161
+                } else {
162
+                    dispatch(showStartedRecordingNotification(
163
+                        mode, initiator && getParticipantDisplayName(getState, initiator.getId())));
165
                 }
164
                 }
166
 
165
 
167
 
166
 

Loading…
Cancel
Save