Fix new audio player features not working on Safari (#14465)

Fixes #14462
lolsob-rspec
ThibG 2020-08-02 11:20:17 +02:00 committed by GitHub
parent 9a709d63c2
commit 1f34bd4ff7
1 changed files with 3 additions and 2 deletions

View File

@ -269,6 +269,7 @@ class Audio extends React.PureComponent {
} }
_initAudioContext () { _initAudioContext () {
const AudioContext = window.AudioContext || window.webkitAudioContext;
const context = new AudioContext(); const context = new AudioContext();
const source = context.createMediaElementSource(this.audio); const source = context.createMediaElementSource(this.audio);