mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 02:21:37 +01:00
Fix new audio player features not working on Safari (#14465)
Fixes #14462
This commit is contained in:
parent
5faf2de938
commit
51b5bb5301
1 changed files with 3 additions and 2 deletions
|
@ -269,8 +269,9 @@ class Audio extends React.PureComponent {
|
|||
}
|
||||
|
||||
_initAudioContext () {
|
||||
const context = new AudioContext();
|
||||
const source = context.createMediaElementSource(this.audio);
|
||||
const AudioContext = window.AudioContext || window.webkitAudioContext;
|
||||
const context = new AudioContext();
|
||||
const source = context.createMediaElementSource(this.audio);
|
||||
|
||||
this.visualizer.setAudioContext(context, source);
|
||||
source.connect(context.destination);
|
||||
|
|
Loading…
Reference in a new issue