How to play a network mp3 file when accessing the local server in node.js environment

const http = require ("http"),

fs = require("fs");

http.createServer ((req,res) = > {

let mp3 = "song.mp3";
let stat = fs.statSync(mp3);

res.writeHead(200,{
    "Content-Type":"audio/mpeg",
    "Content-Length":stat.size
});

fs.createReadStream(mp3).pipe(res);

}) .notify (3000 minutes localhost");

< H1 > if you point mp3 to the network file path" http://fs.w.kugou.com/2018090.", how can you implement < / H1 >?
Jun.09,2021

is it bad to play the network directly?

if you don't feel good, then choose the following two types:
, download them and play them locally.
proxy to the corresponding network address.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50946-450d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50946-450d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?