mirror of
https://github.com/kevin-DL/vue-audio-recorder.git
synced 2026-01-11 19:04:28 +00:00
Fix audio recording in Safari
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user