Added playCatchPromise method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:17:19 +01:00
parent fcd9efee42
commit 3f6df08552

View file

@ -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) {