Fix audio recording in Safari

This commit is contained in:
Gennady Grishkovtsov
2018-07-27 11:42:45 +03:00
parent fac808e87e
commit b5f752b8ec

View File

@@ -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