feat(iframeAPI): implement avatar change commands

This commit is contained in:
hristoterezov
2017-01-12 15:53:17 -06:00
parent 85e5b0fc31
commit f7ce8d028d
4 changed files with 61 additions and 35 deletions
+4 -2
View File
@@ -54,10 +54,12 @@ function initCommands() {
"toggle-contact-list": APP.UI.toggleContactList,
"toggle-share-screen":
APP.conference.toggleScreenSharing.bind(APP.conference),
"video-hangup": () => APP.conference.hangup()
"video-hangup": () => APP.conference.hangup(),
"email": APP.conference.changeLocalEmail,
"avatar-url": APP.conference.changeLocalAvatarUrl
};
Object.keys(commands).forEach(function (key) {
postis.listen(key, commands[key]);
postis.listen(key, args => commands[key](...args));
});
}