Issues Streaming MP4s with Webtorrent
You need to either pipe the file data by reading it.
var readFile = fs.createReadStream("path/to/movie.mp4");readFile.pipe(res);
Or have the file in a public route. app.use(express.static('public'))
and put movie.mp4 in the public/ folder. Then in your src, do a full url link. http://localhost:3000/movie.mp4
.