javascript webRT C перекодирование аудио - PullRequest
0 голосов
/ 14 июля 2020

Я пытаюсь записать звонок в реальном времени с помощью webRT C, но мой голос входит, а другой - нет.

Как я могу получить свой голос и другой голос ввести одновременно?

  if(type === 'start'){
return a= function() {
  // chunks = [];
  // mediaRecorder.start();
  //start the recording process 
  rec.record();
  console.log("recorder started");
}

}

  if(type === 'stop'){
return b= function() {
  // mediaRecorder.stop();
  rec.stop(); //stop microphone access 
  gumStream.getAudioTracks()[0].stop();

  console.log(gumStream.getAudioTracks());
  console.log("recorder stopped");

  rec.exportWAV(createDownloadLink);

}

}

var constraints = {video: true, audio: true};
...