File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ var list = fs
33
33
. map ( ( songItem ) => songItem . name ) ;
34
34
35
35
// 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 ) ] } ` ) ;
37
37
radio . on ( "finish" , ( ) => {
38
38
radio . play ( `./Music/${ list [ Math . floor ( Math . random ( ) * list . length ) ] } ` ) ;
39
39
} ) ;
Original file line number Diff line number Diff line change 1
- //Openradio Core
2
- const ffmpeg = require ( "prism-media" ) . FFmpeg ;
1
+ // The Openradio Core
3
2
const { spawn } = require ( "child_process" ) ;
4
3
const { PassThrough } = require ( "stream" ) ;
5
4
const events = require ( "events" ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openradio" ,
3
- "version" : " 1.2.4 " ,
3
+ "version" : " 1.3.0 " ,
4
4
"description" : " Only some simple live stream library" ,
5
5
"main" : " ./index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments