|
|
@@ -95,11 +95,11 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
private getEletronDisplayMedia(): Promise<MediaStream | null> {
|
|
|
return new Promise(async (resolve) => {
|
|
|
try {
|
|
|
- // const audioInput = await this.getEletronDeaultAudio();
|
|
|
- // if (audioInput) {
|
|
|
- // this.audioInput = audioInput;
|
|
|
- // }
|
|
|
- // console.log('eletron-audioInput', audioInput);
|
|
|
+ const audioInput = await this.getEletronDeaultAudio();
|
|
|
+ if (audioInput) {
|
|
|
+ this.audioInput = audioInput;
|
|
|
+ }
|
|
|
+ console.log('eletron-audioInput', audioInput);
|
|
|
if (navigator.mediaDevices.getDisplayMedia) {
|
|
|
const res = await navigator.mediaDevices.getUserMedia({
|
|
|
audio: false,
|
|
|
@@ -166,12 +166,7 @@ export class BasicSimaqRecorder extends EventEmitter {
|
|
|
if (navigator.mediaDevices.getUserMedia) {
|
|
|
const res = await navigator.mediaDevices.getUserMedia({
|
|
|
video: false,
|
|
|
- audio: {
|
|
|
- mandatory: {
|
|
|
- chromeMediaSource: 'desktop',
|
|
|
- chromeMediaSourceId: this.chromeAudioSourceId,
|
|
|
- },
|
|
|
- },
|
|
|
+ audio: { deviceId: 'default' },
|
|
|
} as any as MediaStreamConstraints);
|
|
|
return resolve(res);
|
|
|
}
|