fixes issue of sending empty video

This commit is contained in:
Dan A. Perrone 2017-02-07 10:18:52 -05:00 committed by GitHub
parent 1116cc0d1e
commit 37cce892fc

View File

@ -285,6 +285,10 @@ Verto.prototype.setMicrophone = function (tag) {
}; };
Verto.prototype.setScreenShare = function (tag) { Verto.prototype.setScreenShare = function (tag) {
// required for Verto to know we want to use video
// tell Verto we want to share webcam so it knows there will be a video stream
// but instead of a webcam we pass screen constraints
this.useCamera = 'any';
this.mediaCallback = this.makeShare; this.mediaCallback = this.makeShare;
this.create(tag); this.create(tag);
}; };