mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Saving current position of the sound and stopping and releasing audio tag when calling pause method
This commit is contained in:
parent
f6de613fd0
commit
e68ff2b18a
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue