- add dimension of screen share

This commit is contained in:
Ubuntu 2017-03-29 15:58:43 +00:00
parent aed4596a05
commit 8445c49f92

View File

@ -359,6 +359,8 @@ Verto.prototype.makeShare = function () {
screenInfo = {
chromeMediaSource: "desktop",
chromeMediaSourceId: constraints.streamId,
maxWidth: window.screen.width > 1920 ? window.screen.width : 1920,
maxHeight: window.screen.height > 1080 ? window.screen.height : 1080
};
_this.logger(screenInfo);