Skip to content

Commit

Permalink
Use min for width/height to apply constraints (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidliu committed Nov 26, 2021
1 parent 357213e commit c50e026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/track/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ class VideoParameters {
// https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia
//
Map<String, dynamic> toMediaConstraintsMap() => <String, dynamic>{
'maxWidth': width,
'maxHeight': height,
'minWidth': width,
'minHeight': height,
'maxFrameRate': encoding.maxFramerate,
};
}
Expand Down

0 comments on commit c50e026

Please sign in to comment.