Adds utility methods used by torture.

This commit is contained in:
damencho 2016-01-05 16:20:02 -06:00
parent a56d462dae
commit 1702105b06
1 changed files with 14 additions and 0 deletions

14
app.js
View File

@ -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();
}
};