|
@@ -116,11 +116,9 @@ export class CameraSource extends VideoSource
|
116
|
116
|
// set up media constraints
|
117
|
117
|
const idealSize = Utils.resolution(options.resolution, options.aspectRatio);
|
118
|
118
|
const userConstraints = options.constraints;
|
119
|
|
- const ourConstraints/*: MediaTrackConstraints*/ = {
|
|
119
|
+ const ourConstraints: MediaTrackConstraints = {
|
120
|
120
|
width: { ideal: idealSize.width },
|
121
|
|
- height: { ideal: idealSize.height },
|
122
|
|
- resizeMode: 'none' // request native resolution to encourage usage of standard resolutions
|
123
|
|
- // users can opt-in to 'crop-and-scale' if they so desire
|
|
121
|
+ height: { ideal: idealSize.height }
|
124
|
122
|
};
|
125
|
123
|
const constraints: MediaStreamConstraints = {
|
126
|
124
|
audio: false,
|