Unbind error event
This commit is contained in:
parent
94bbe803c1
commit
a7dce35fae
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -708,6 +708,7 @@ function tryRemoveElement(elem) {
|
|||
videoElement.removeEventListener('click', this.onClick);
|
||||
videoElement.removeEventListener('dblclick', this.onDblClick);
|
||||
videoElement.removeEventListener('waiting', this.onWaiting);
|
||||
videoElement.removeEventListener('error', this.onError); // bound in htmlMediaHelper
|
||||
|
||||
videoElement.parentNode.removeChild(videoElement);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue