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