Stop the music from playing
var uActions = require('u-actions');
var Action = uActions.Action;
new Action('stop music',stopMusic)
.addStringParameter('filepath')
.register();
function stopMusic(path){
uActions.sound.stop(path);
}
Stop all music from playing
var uActions = require('u-actions');
var Action = uActions.Action;
new Action('stop music',stopMusic).register();
function stopMusic(){
uActions.sound.stopAll();
}
Play music