mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 15:41:37 +00:00
Added playCatchPromise method docs
This commit is contained in:
parent
fcd9efee42
commit
3f6df08552
1 changed files with 7 additions and 0 deletions
|
@ -228,6 +228,13 @@ var HTML5AudioSound = new Class({
|
|||
selectedSound.previousTime = 0;
|
||||
return true;
|
||||
},
|
||||
/**
|
||||
* Method used for playing audio tag and catching possible exceptions
|
||||
* thrown from rejected Promise returned from play method call.
|
||||
*
|
||||
* @private
|
||||
* @method Phaser.Sound.HTML5AudioSound#playCatchPromise
|
||||
*/
|
||||
playCatchPromise: function () {
|
||||
var playPromise = this.audio.play();
|
||||
if (playPromise) {
|
||||
|
|
Loading…
Reference in a new issue