Saving current position of the sound and stopping and releasing audio tag when calling pause method

This commit is contained in:
Pavle Goloskokovic 2018-01-11 18:55:42 +01:00
parent f6de613fd0
commit e68ff2b18a

View file

@ -59,7 +59,10 @@ var HTML5AudioSound = new Class({
if (!BaseSound.prototype.pause.call(this)) {
return false;
}
// TODO implement pause method
// \/\/\/ isPlaying = false, isPaused = true \/\/\/
this.currentConfig.seek = this.audio.currentTime
- (this.currentMarker ? this.currentMarker.start : 0);
this.stopAndReleaseAudioTag();
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
return true;
},