Просмотр исходного кода

Adds utility methods used by torture.

j8
damencho 9 лет назад
Родитель
Сommit
1702105b06
1 измененных файлов: 14 добавлений и 0 удалений
  1. 14
    0
      app.js

+ 14
- 0
app.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить