|
@@ -107,7 +107,10 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
mandatory: {
|
|
|
chromeMediaSource: 'desktop',
|
|
|
chromeMediaSourceId: this.chromeMediaSourceId,
|
|
|
- ...videoConstraints.getValue(),
|
|
|
+ minWidth: 1280,
|
|
|
+ maxWidth: 3840,
|
|
|
+ minHeight: 720,
|
|
|
+ maxHeight: 2160,
|
|
|
},
|
|
|
},
|
|
|
} as any as MediaStreamConstraints);
|
|
@@ -163,10 +166,7 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
if (navigator.mediaDevices.getUserMedia) {
|
|
|
const res = await navigator.mediaDevices.getUserMedia({
|
|
|
video: false,
|
|
|
- audio: {
|
|
|
- deviceId: 'default',
|
|
|
- ...audioConstraints.getValue(),
|
|
|
- },
|
|
|
+ audio: { deviceId: 'default' },
|
|
|
} as any as MediaStreamConstraints);
|
|
|
return resolve(res);
|
|
|
}
|