Const
The Sound Pause Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are paused.
Listen to it from a Sound instance using Sound.on('pause', listener), i.e.:
Sound.on('pause', listener)
var music = this.sound.add('key');music.on('pause', listener);music.play();music.pause(); Copy
var music = this.sound.add('key');music.on('pause', listener);music.play();music.pause();
The Sound Pause Event.
This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are paused.
Listen to it from a Sound instance using
Sound.on('pause', listener), i.e.: