Get rid of some config that Safari cannot handle and was part of the older getUserMedia. (#1297)

This commit is contained in:
picklesrus 2018-07-23 09:45:27 -05:00 committed by Eric Rosenbaum
parent f3451cea91
commit db0597ada5

View file

@ -550,14 +550,7 @@ class Scratch3SpeechBlocks {
// Safari still needs a webkit prefix for audio context
this._context = new (window.AudioContext || window.webkitAudioContext)();
this._audioPromise = navigator.mediaDevices.getUserMedia({
audio: {
echoCancellation: true,
channelCount: 1,
sampleRate: {
ideal: 16000
},
sampleSize: 16
}
audio: true
});
const tempContext = this._context;