Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds utility methods used by torture.

damencho1702105b062e
diff --git a/app.js b/app.js
index 1a3b04f31e..2ae9609b98 100644
--- a/app.js
+++ b/app.js
@@ -120,6 +120,20 @@ const APP = {
},
toggleVideoMuted () {
this.muteVideo(!this.videoMuted);
+ },
+
+ // used by torture currently
+ isJoined () {
+ return APP.conference._room
+ && APP.conference._room.isJoined();
+ },
+ getConnectionState () {
+ return APP.conference._room
+ && APP.conference._room.getConnectionState();
+ },
+ getMyUserId () {
+ return APP.conference._room
+ && APP.conference._room.myUserId();
}
};