Skip to content

Commit

Permalink
Accept a value zero in video constraints. (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Sep 20, 2017
1 parent ef1294f commit 435d517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erizo_controller/erizoJS/models/Publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ class Source {

setVideoConstraints(id, width, height, frameRate) {
var subscriber = this.getSubscriber(id);
var maxWidth = (width && width.max) || -1;
var maxHeight = (height && height.max) || -1;
var maxFrameRate = (frameRate && frameRate.max) || -1;
var maxWidth = (width && width.max !== undefined) ? width.max : -1;
var maxHeight = (height && height.max !== undefined) ? height.max : -1;
var maxFrameRate = (frameRate && frameRate.max !== undefined) ? frameRate.max : -1;
subscriber.setVideoConstraints(maxWidth, maxHeight, maxFrameRate);
}

Expand Down

0 comments on commit 435d517

Please sign in to comment.