Explorar el Código

Adds utility methods used by torture.

j8
damencho hace 9 años
padre
commit
1702105b06
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. 14
    0
      app.js

+ 14
- 0
app.js Ver fichero

@@ -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
 

Loading…
Cancelar
Guardar