I have a problem with playing random mp3 files with mpg123 on nodejs.
It's working when I play just one song or execute mpg123 --random ./mp3 in terminal.
mpg123 --random ./mp3
But it's not working with spawn in child_process
spawn
child_process
here is my code
const { spawn } = require('child_process') spawn('mpg123', ['--random', './mp3'])
what is problem?
1.4m articles
1.4m replys
5 comments
57.0k users