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 db43e4b  [OPENMEETINGS-2209] status info and re-connection
db43e4b is described below

commit db43e4b0e494a87f1b8cb7facd702a03dd78a58a
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Thu Apr 2 21:30:38 2020 +0700

    [OPENMEETINGS-2209] status info and re-connection
---
 .../main/java/org/apache/openmeetings/web/room/raw-video.js   | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 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 c5f82b5..8d6b6a6 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
@@ -119,11 +119,18 @@ var Video = (function() {
                                console.warn(`!!RTCPeerConnection state 
changed: ${pc.connectionState}`);
                                switch(pc.connectionState) {
                                        case "connected":
-                                               // The connection has become 
fully connected
+                                               if (sd.self) {
+                                                       // The connection has 
become fully connected
+                                                       OmUtil.alert('info', 
`Connection to Media server has been established`, 3000);//notify user
+                                               }
                                                break;
                                        case "disconnected":
                                        case "failed":
-                                               // One or more transports has 
terminated unexpectedly or in an error
+                                               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();
+                                               }
                                                break;
                                        case "closed":
                                                // The connection has been 
closed

Reply via email to