Skip to content

Commit 9b386ea

Browse files
committed
Forget? Yes. Sometime that happend often.
Signed-off-by: Yonle <yonle@duck.com>
1 parent 3e4e8fd commit 9b386ea

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

example/audio/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var list = fs
3333
.map((songItem) => songItem.name);
3434

3535
// Fetch & Play song randomly fron Music Directory!
36-
radio.play(fs.createReadStream(`./Music/${list[Math.floor(Math.random() * list.length)]}`));
36+
radio.play(`./Music/${list[Math.floor(Math.random() * list.length)]}`);
3737
radio.on("finish", () => {
3838
radio.play(`./Music/${list[Math.floor(Math.random() * list.length)]}`);
3939
});

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//Openradio Core
2-
const ffmpeg = require("prism-media").FFmpeg;
1+
// The Openradio Core
32
const { spawn } = require("child_process");
43
const { PassThrough } = require("stream");
54
const events = require("events");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openradio",
3-
"version": "1.2.4",
3+
"version": "1.3.0",
44
"description": "Only some simple live stream library",
55
"main": "./index.js",
66
"scripts": {

0 commit comments

Comments
 (0)