mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
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
@ -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…
Reference in New Issue
Block a user