diff --git a/src/lib/recorder.js b/src/lib/recorder.js index ed3d191..dda894c 100644 --- a/src/lib/recorder.js +++ b/src/lib/recorder.js @@ -79,7 +79,7 @@ export default class { } _micCaptured (stream) { - this.context = new AudioContext() + this.context = new(window.AudioContext || window.webkitAudioContext)() this.input = this.context.createMediaStreamSource(stream) this.processor = this.context.createScriptProcessor(this.bufferSize, 1, 1) this.duration = this._duration