Fix new audio player features not working on Safari (#14465)
Fixes #14462
This commit is contained in:
parent
58c59af573
commit
856cb96a2b
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue