changed event forward method

This commit is contained in:
Cat 2017-03-02 14:34:45 +01:00 committed by Thulinma
parent 899ee1088a
commit cf942c5700
4 changed files with 28 additions and 7 deletions

View file

@ -779,7 +779,10 @@ MistPlayer.prototype.report = function(msg) {
MistPlayer.prototype.unload = function(){
this.addlog('Unloading..');
if (('pause' in this) && (this.pause)) { this.pause(); }
if ('updateSrc' in this) { this.updateSrc(''); this.load(); }
if ('updateSrc' in this) {
this.updateSrc('');
this.element.load(); //dont use this.load() to avoid interrupting play/pause
}
this.timer.clear();
this.target.innerHTML = '';
};