Update src/plugins/htmlAudioPlayer/plugin.js
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
815b7f9f1e
commit
c9b7f834ca
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,9 @@ class HtmlAudioPlayer {
|
|||
|
||||
function addGainElement(elem) {
|
||||
try {
|
||||
const audioCtx = new AudioContext(); /* eslint-disable-line compat/compat */
|
||||
const AudioContext = window.AudioContext || window.webkitAudioContext; /* eslint-disable-line compat/compat */
|
||||
|
||||
const audioCtx = new AudioContext();
|
||||
const source = audioCtx.createMediaElementSource(elem);
|
||||
|
||||
const gainNode = audioCtx.createGain();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue