|
@@ -24,7 +24,8 @@ public class MusicServiceImpl implements MusicService {
|
|
|
public Integer start(String path, Integer vol) {
|
|
|
stop();
|
|
|
try {
|
|
|
- String cmd = "play -v "+Float.valueOf(new Integer(vol).toString())/100+" "+path+" repeat 10";
|
|
|
+// String cmd = "play -v "+Float.valueOf(new Integer(vol).toString())/100+" "+path+" repeat 10";
|
|
|
+ String cmd = "/home/playMusic.sh "+path+" "+vol;
|
|
|
log.info("cmd:{}",cmd);
|
|
|
p = Runtime.getRuntime().exec(cmd);
|
|
|
return 0;
|