mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Fixed pickAndPlayAudioTag method docs
This commit is contained in:
parent
b607251e77
commit
c745e096ad
1 changed files with 0 additions and 6 deletions
|
@ -242,18 +242,15 @@ var HTML5AudioSound = new Class({
|
|||
this.reset();
|
||||
return false;
|
||||
}
|
||||
|
||||
var seek = this.currentConfig.seek;
|
||||
var delay = this.currentConfig.delay;
|
||||
var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek;
|
||||
this.previousTime = offset;
|
||||
this.audio.currentTime = offset;
|
||||
this.applyConfig();
|
||||
|
||||
if (delay === 0)
|
||||
{
|
||||
this.startTime = 0;
|
||||
|
||||
if (this.audio.paused)
|
||||
{
|
||||
this.playCatchPromise();
|
||||
|
@ -262,15 +259,12 @@ var HTML5AudioSound = new Class({
|
|||
else
|
||||
{
|
||||
this.startTime = window.performance.now() + delay * 1000;
|
||||
|
||||
if (!this.audio.paused)
|
||||
{
|
||||
this.audio.pause();
|
||||
}
|
||||
}
|
||||
|
||||
this.resetConfig();
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue