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.

Menu