This JQuery sound plugin provides the utility to play the audio file in background without showing the player on UI and stop the running audio file.
Plugin soundPlay function is parameterized and you can pass different argument to initialize the player. You can pass url of sound file, playerId and command as options to override the default values of soundPlay.
- url: Location of sound file.
- playerId: id of hidden player.
- command: play or stop what action is to be performed.