Let you create your own livestream radio.
Before installing OpenRadio, You must have ffmpeg installed on your system.
# OpenRadio CLI Installation npm install -g openradio # OpenRadio Core Installation npm install openradio
const openradio = require("openradio"); const player = openradio(); player.play(fs.createReadStream("audio.mp3")); // After this function, A player is now broadcasting a song. // Do player.pipe(writable) after this.
For OpenRadio CLI
# Go to some directory that contains any audio files.... cd /home/Yonle/Music # Start the radio openradio # You can also Listen to another Port openradio 8080