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

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 63eb4e3  [OPENMEETINGS-2209] better logging, reconnect of recieving 
stream (#54)
63eb4e3 is described below

commit 63eb4e362ff09051489483874455ae9630eb7b19
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Tue Apr 7 13:12:51 2020 +0700

    [OPENMEETINGS-2209] better logging, reconnect of recieving stream (#54)
---
 .../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

Reply via email to