ready4testing
This commit is contained in:
parent
97df3f20fe
commit
4d60cbcb38
@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
// load the things we need
|
||||
//nothing yet
|
||||
var exec = require('child_process').exec;
|
||||
|
||||
|
||||
var App = null;
|
||||
@ -70,7 +70,7 @@ exports.play = function(idx) {
|
||||
}*/
|
||||
|
||||
|
||||
ls = childProcess.exec(
|
||||
var ls = exec(
|
||||
'mplayer -slave -quiet -input file=' + stream2play,
|
||||
function (error, stdout, stderr) {
|
||||
Log.log('Radio: stdout: ' + stdout);
|
||||
@ -79,11 +79,11 @@ exports.play = function(idx) {
|
||||
Log.error('Radio: exec error: ' + error);
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
ls.on('exit', function (code){
|
||||
Log.log('Radio: Child process exited with exit code ' + code);
|
||||
});
|
||||
);
|
||||
} else {
|
||||
Log.error('Radio: No channel defined!');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user