1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Unbind error event

This commit is contained in:
Dmitry Lyzo 2021-09-12 01:28:56 +03:00
parent 94bbe803c1
commit a7dce35fae
2 changed files with 2 additions and 2 deletions

View file

@ -105,8 +105,6 @@ class HtmlAudioPlayer {
};
function setCurrentSrc(elem, options) {
elem.removeEventListener('error', onError);
unBindEvents(elem);
bindEvents(elem);
@ -184,6 +182,7 @@ class HtmlAudioPlayer {
elem.removeEventListener('playing', onPlaying);
elem.removeEventListener('play', onPlay);
elem.removeEventListener('waiting', onWaiting);
elem.removeEventListener('error', onError); // bound in htmlMediaHelper
}
self.stop = function (destroyPlayer) {