You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2020/04/07 06:07:58 UTC

[openmeetings] 01/01: [OPENMEETINGS-2209] better logging, reconnect of recieving stream

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch OPENMEETINGS-2209-better-logging
in repository https://gitbox.apache.org/repos/asf/openmeetings.git

commit f903f832ec7e86fad6251e3029741cbf77b09661
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue Apr 7 13:07:32 2020 +0700

    [OPENMEETINGS-2209] better logging, reconnect of recieving stream
---
 .../main/java/org/apache/openmeetings/web/room/raw-video.js    | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
index 24bf3e2..047a219 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video.js
@@ -116,7 +116,7 @@ var Video = (function() {
 		if (rtcPeer) {
 			const pc = rtcPeer.peerConnection;
 			pc.onconnectionstatechange = function(event) {
-				console.warn(`!!RTCPeerConnection state changed: ${pc.connectionState}`);
+				console.warn(`!!RTCPeerConnection state changed: ${pc.connectionState}, user: ${sd.user.displayName}, uid: ${sd.uid}`);
 				switch(pc.connectionState) {
 					case "connected":
 						if (sd.self) {
@@ -126,11 +126,9 @@ var Video = (function() {
 						break;
 					case "disconnected":
 					case "failed":
-						if (sd.self) {
-							//connection has been dropped
-							OmUtil.alert('warning', `Media server connection is ${pc.connectionState}, will try to re-connect`, 3000);//notify user
-							_refresh();
-						}
+						//connection has been dropped
+						OmUtil.alert('warning', `Media server connection for user ${sd.user.displayName} is ${pc.connectionState}, will try to re-connect`, 3000);//notify user
+						_refresh();
 						break;
 					case "closed":
 						// The connection has been closed