Skip to content

Commit

Permalink
Forget? Yes. Sometime that happend often.
Browse files Browse the repository at this point in the history
Signed-off-by: Yonle <yonle@duck.com>
  • Loading branch information
Yonle committed May 2, 2022
1 parent 3e4e8fd commit 9b386ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var list = fs
.map((songItem) => songItem.name);

// Fetch & Play song randomly fron Music Directory!
radio.play(fs.createReadStream(`./Music/${list[Math.floor(Math.random() * list.length)]}`));
radio.play(`./Music/${list[Math.floor(Math.random() * list.length)]}`);
radio.on("finish", () => {
radio.play(`./Music/${list[Math.floor(Math.random() * list.length)]}`);
});
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//Openradio Core
const ffmpeg = require("prism-media").FFmpeg;
// The Openradio Core
const { spawn } = require("child_process");
const { PassThrough } = require("stream");
const events = require("events");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openradio",
"version": "1.2.4",
"version": "1.3.0",
"description": "Only some simple live stream library",
"main": "./index.js",
"scripts": {
Expand Down

0 comments on commit 9b386ea

Please sign in to comment.