File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -223,16 +223,10 @@ export class PlayerAudio {
223223 songsQueue . forEach ( ( sound ) => {
224224 if ( sound . sourceNode instanceof MediaElementAudioSourceNode ) {
225225 if ( typeof sound . sourceNode . mediaElement !== 'undefined' ) {
226- // clone the element to remove all listeners
227- // commented out remove listeners as media element is removed, so if there
228- // is no reference to it, the listeners should get removed too
229- //sound.sourceNode.mediaElement.replaceWith(sound.sourceNode.mediaElement.cloneNode(true));
230- // call its own remove method
231226 sound . sourceNode . mediaElement . remove ( ) ;
232227 }
233- } else if ( sound . sourceNode instanceof AudioBufferSourceNode ) {
234- //
235228 }
229+ sound . sourceNode . disconnect ( ) ;
236230 } ) ;
237231
238232 this . _disconnectPlayerGainNode ( ) ;
You can’t perform that action at this time.
0 commit comments