Hi Google Chrome Team ,
I've added the 'microphone' permission to the app manifest and was prompted for permission to use microphone, when navigator.mediaDevices.getUserMedia was called.
Here is the code snippet:
navigator.mediaDevices.getUserMedia({ audio: true })
.then(stream => {
let audioChunks = [];
let rec = new MediaRecorder(stream);
rec.ondataavailable = e => {
console.log("New audio data " + e.data);
audioChunks.push(e.data);
}
rec.start();
})
.catch(e => console.log("Audio recording error" + e));
Thanks,
Sergey.