FS-7800 add canvas id arg to setVideoLayout

This commit is contained in:
Anthony Minessale
2016-03-18 18:30:49 -05:00
parent f93668e3fd
commit 4d180b1aa1
2 changed files with 8 additions and 4 deletions

View File

@@ -1308,11 +1308,15 @@
this.modCommand("vid-write-png", null, file);
};
$.verto.conf.prototype.setVideoLayout = function(layout) {
$.verto.conf.prototype.setVideoLayout = function(layout, canvasID) {
if (!this.params.hasVid) {
throw 'Conference has no video';
}
this.modCommand("vid-layout", null, layout);
if (canvasID) {
this.modCommand("vid-layout", null, [layout, canvasID]);
} else {
this.modCommand("vid-layout", null, layout);
}
};
$.verto.conf.prototype.kick = function(memberID) {