Added resume method implementation that calls super method and dispatches resume event

This commit is contained in:
Pavle Goloskokovic 2018-01-11 17:43:56 +01:00
parent 5e8d0dcaee
commit 196258b8ac

View file

@ -44,6 +44,15 @@ var HTML5AudioSound = new Class({
// TODO implement pause method
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
return true;
},
resume: function () {
if (!BaseSound.prototype.resume.call(this)) {
return false;
}
// \/\/\/ isPlaying = true, isPaused = false \/\/\/
// TODO implement resume method
this.events.dispatch(new SoundEvent(this, 'SOUND_RESUME'));
return true;
}
});
module.exports = HTML5AudioSound;