mirror of https://github.com/OpenVidu/openvidu.git
ov-components: add UNKNOWN_DISCONNECT message for various languages and handle participant disconnection reason
parent
efb691f481
commit
cb8f11449f
|
@ -519,6 +519,10 @@ export class SessionComponent implements OnInit, OnDestroy {
|
|||
participantLeftEvent.reason = ParticipantLeftReason.SIGNAL_CLOSE;
|
||||
descriptionErrorKey = 'ERRORS.SIGNAL_CLOSE';
|
||||
break;
|
||||
default:
|
||||
participantLeftEvent.reason = ParticipantLeftReason.OTHER;
|
||||
descriptionErrorKey = 'ERRORS.DISCONNECT';
|
||||
break;
|
||||
}
|
||||
this.log.e('Room Disconnected', participantLeftEvent.reason);
|
||||
this.onParticipantLeft.emit(participantLeftEvent);
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "您已被移出此房间",
|
||||
"ROOM_DELETED": "此房间已被删除",
|
||||
"DUPLICATE_IDENTITY": "由于您的昵称已被分配给另一位参与者,您已被断开连接",
|
||||
"UNKNOWN_DISCONNECT": "您已从房间断开连接",
|
||||
"TOGGLE_CAMERA": "切换相机时出现错误",
|
||||
"TOGGLE_MICROPHONE": "切换麦克风时出现错误",
|
||||
"SCREEN_SHARING": "分享屏幕出错",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "Sie wurden aus diesem Raum entfernt",
|
||||
"ROOM_DELETED": "Dieser Raum wurde gelöscht",
|
||||
"DUPLICATE_IDENTITY": "Sie wurden getrennt, da Ihr Spitzname einem anderen Teilnehmer zugewiesen wurde",
|
||||
"UNKNOWN_DISCONNECT": "Sie wurden vom Raum getrennt",
|
||||
"TOGGLE_CAMERA": "Es gab einen Fehler beim Umschalten der Kamera",
|
||||
"TOGGLE_MICROPHONE": "Es ist ein Fehler beim Umschalten des Mikrofons aufgetreten",
|
||||
"SCREEN_SHARING": "Fehler beim Teilen des Bildschirms",
|
||||
|
|
|
@ -142,13 +142,14 @@
|
|||
"SESSION": "There was an error connecting to the room",
|
||||
"CONNECTION": "Connection lost",
|
||||
"RECONNECT": "Oops! Trying to reconnect to the room...",
|
||||
"DISCONNECT": "Te has desconectado",
|
||||
"NETWORK_DISCONNECT": "Te desconectaste debido a un problema de conectividad de red",
|
||||
"SIGNAL_CLOSE": "La conexión con el servidor se cerró inesperadamente",
|
||||
"SERVER_SHUTDOWN": "El servidor está actualmente fuera de servicio o en mantenimiento",
|
||||
"PARTICIPANT_REMOVED": "Has sido eliminado de esta sala",
|
||||
"ROOM_DELETED": "Esta sala ha sido eliminada",
|
||||
"DUPLICATE_IDENTITY": "Te has desconectado porque tu alias ha sido asignado a otro participante",
|
||||
"DISCONNECT": "You have been disconnected",
|
||||
"NETWORK_DISCONNECT": "You were disconnected due to a network connectivity issue",
|
||||
"SIGNAL_CLOSE": "The connection to the server was unexpectedly closed",
|
||||
"SERVER_SHUTDOWN": "The server is currently down or under maintenance",
|
||||
"PARTICIPANT_REMOVED": "You have been removed from this room",
|
||||
"ROOM_DELETED": "This room has been deleted",
|
||||
"DUPLICATE_IDENTITY": "You have been disconnected because your alias was assigned to another participant",
|
||||
"UNKNOWN_DISCONNECT": "You have been disconnected from the room",
|
||||
"TOGGLE_CAMERA": "There was an error toggling camera",
|
||||
"TOGGLE_MICROPHONE": "There was an error toggling microhpone",
|
||||
"SCREEN_SHARING": "Error sharing screen",
|
||||
|
|
|
@ -148,6 +148,7 @@
|
|||
"PARTICIPANT_REMOVED": "Has sido eliminado de esta sala",
|
||||
"ROOM_DELETED": "Esta sala ha sido eliminada",
|
||||
"DUPLICATE_IDENTITY": "Te has desconectado porque tu alias ha sido asignado a otro participante",
|
||||
"UNKNOWN_DISCONNECT": "Te has desconectado de la sala",
|
||||
"TOGGLE_CAMERA": "Hubo un error cambiando la cámara",
|
||||
"TOGGLE_MICROPHONE": "Hubo un error cambiando el micrófono",
|
||||
"SCREEN_SHARING": "Hubo un error compartiendo pantalla",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "Vous avez été retiré de cette salle",
|
||||
"ROOM_DELETED": "Cette salle a été supprimée",
|
||||
"DUPLICATE_IDENTITY": "Vous avez été déconnecté car votre pseudo a été attribué à un autre participant",
|
||||
"UNKNOWN_DISCONNECT": "Vous avez été déconnecté de la salle",
|
||||
"TOGGLE_CAMERA": "There was an error toggle camera",
|
||||
"TOGGLE_MICROPHONE": "There was an error toggling microhpone",
|
||||
"SCREEN_SHARING": "Erreur de partage d'écran",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "आपको इस कमरे से हटा दिया गया है",
|
||||
"ROOM_DELETED": "यह कमरा हटा दिया गया है",
|
||||
"DUPLICATE_IDENTITY": "आपको डिस्कनेक्ट कर दिया गया क्योंकि आपका उपनाम किसी अन्य प्रतिभागी को सौंपा गया है",
|
||||
"UNKNOWN_DISCONNECT": "आप कक्ष से डिस्कनेक्ट हो गए हैं",
|
||||
"TOGGLE_CAMERA": "कैमरा टॉगल करने में त्रुटि हुई",
|
||||
"TOGGLE_MICROPHONE": "माइक्रोफ़ोन को चालू करने में त्रुटि हुई",
|
||||
"SCREEN_SHARING": "स्क्रीन साझा करने में त्रुटि",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "Sei stato rimosso da questa stanza",
|
||||
"ROOM_DELETED": "Questa stanza è stata eliminata",
|
||||
"DUPLICATE_IDENTITY": "Sei stato disconnesso perché il tuo soprannome è stato assegnato a un altro partecipante",
|
||||
"UNKNOWN_DISCONNECT": "Sei stato disconnesso dalla stanza",
|
||||
"TOGGLE_CAMERA": "Si è verificato un errore nell'attivazione della telecamera",
|
||||
"TOGGLE_MICROPHONE": "Si è verificato un errore nell'attivazione del microfono",
|
||||
"SCREEN_SHARING": "Errore nella condivisione dello schermo",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "このルームから削除されました",
|
||||
"ROOM_DELETED": "このルームは削除されました",
|
||||
"DUPLICATE_IDENTITY": "ニックネームが他の参加者に割り当てられたため、切断されました",
|
||||
"UNKNOWN_DISCONNECT": "あなたはルームから切断されました",
|
||||
"TOGGLE_CAMERA": "カメラの切り替えに失敗しました",
|
||||
"TOGGLE_MICROPHONE": "マイクの切り替えに失敗しました",
|
||||
"SCREEN_SHARING": "画面共有にエラーが発生しました",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "Je bent uit deze kamer verwijderd",
|
||||
"ROOM_DELETED": "Deze kamer is verwijderd",
|
||||
"DUPLICATE_IDENTITY": "Je bent losgekoppeld omdat je bijnaam aan een andere deelnemer is toegewezen",
|
||||
"UNKNOWN_DISCONNECT": "Je bent losgekoppeld van de kamer",
|
||||
"TOGGLE_CAMERA": "Er is een fout opgetreden bij het overschakelen naar een andere camera",
|
||||
"TOGGLE_MICROPHONE": "Er is een fout opgetreden bij het overschakelen naar een microfoon",
|
||||
"SCREEN_SHARING": "Fout bij het delen van het scherm",
|
||||
|
|
|
@ -149,6 +149,7 @@
|
|||
"PARTICIPANT_REMOVED": "Você foi removido desta sala",
|
||||
"ROOM_DELETED": "Esta sala foi excluída",
|
||||
"DUPLICATE_IDENTITY": "Você foi desconectado porque seu apelido foi atribuído a outro participante",
|
||||
"UNKNOWN_DISCONNECT": "Você foi desconectado da sala",
|
||||
"TOGGLE_CAMERA": "Houve um erro ao alternar a câmara",
|
||||
"TOGGLE_MICROPHONE": "Houve um erro ao alternar microhpone",
|
||||
"SCREEN_SHARING": "ecrã_partilha de erros",
|
||||
|
|
|
@ -36,7 +36,9 @@ export enum ParticipantLeftReason {
|
|||
ROOM_DELETED = 'room_deleted', // The room was deleted
|
||||
|
||||
// Permission/policy-based disconnections
|
||||
DUPLICATE_IDENTITY = 'duplicate_identity' // The participant was disconnected due to a duplicate identity
|
||||
DUPLICATE_IDENTITY = 'duplicate_identity', // The participant was disconnected due to a duplicate identity
|
||||
|
||||
OTHER = 'other' // The participant was disconnected for an unknown reason
|
||||
}
|
||||
/**
|
||||
* Interface that defines the properties of the participant track publication.
|
||||
|
|
Loading…
Reference in New Issue