*/
} else if (split[0].equalsIgnoreCase("music")) {
if (split.length < 2) {
playRandomMusic();
} else if (split[1].equalsIgnoreCase("next") || split[1].equalsIgnoreCase("skip")) {
SoundSystem sound = getSoundSystem();
if (sound != null) {
if (sound.playing("BgMusic")) {
sound.stop("BgMusic");
}
if (sound.playing("streaming")) {
sound.stop("streaming");
}
}
playRandomMusic();
} else if (split[1].equalsIgnoreCase("pause")) {
SoundSystem sound = getSoundSystem();
if (sound != null) {
if (sound.playing("BgMusic")) {
sound.pause("BgMusic");
}
if (sound.playing("streaming")) {
sound.pause("streaming");
}
}
} else if (split[1].equalsIgnoreCase("play")) {
SoundSystem sound = getSoundSystem();
if (sound != null) {
if (!sound.playing("BgMusic")) {
sound.play("BgMusic");
}
if (!sound.playing("BgMusic")) {
playRandomMusic();
}
} else {
playRandomMusic();
}
} else if (split[1].equalsIgnoreCase("stop")) {
SoundSystem sound = getSoundSystem();
if (sound != null) {
if (sound.playing("BgMusic")) {
sound.stop("BgMusic");
}
if (sound.playing("streaming")) {
sound.stop("streaming");
}
}
} else {
try {
int volume = Integer.parseInt(split[1]);