Procházet zdrojové kódy

Adds utility methods used by torture.

j8
damencho před 9 roky
rodič
revize
1702105b06
1 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. 14
    0
      app.js

+ 14
- 0
app.js Zobrazit soubor

@@ -120,6 +120,20 @@ const APP = {
120 120
             },
121 121
             toggleVideoMuted () {
122 122
                 this.muteVideo(!this.videoMuted);
123
+            },
124
+
125
+            // used by torture currently
126
+            isJoined () {
127
+                return APP.conference._room
128
+                    && APP.conference._room.isJoined();
129
+            },
130
+            getConnectionState () {
131
+                return APP.conference._room
132
+                    && APP.conference._room.getConnectionState();
133
+            },
134
+            getMyUserId () {
135
+                return APP.conference._room
136
+                    && APP.conference._room.myUserId();
123 137
             }
124 138
         };
125 139
 

Načítá se…
Zrušit
Uložit