瀏覽代碼

Adds utility methods used by torture.

master
damencho 9 年之前
父節點
當前提交
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
 

Loading…
取消
儲存