Play local video file in electron html5 video player using node.js fs.readStream()
问题 I am developing a video player application, which plays video videos (.mp4) from the local filesystem using node.js and electron (therefore I am using chromium's html5 video player). Playing video videos larger than 2GB seems to be a problem with my current approach. I used to read the local video files using fs.readFileSync and pass that Blob to the video player, like in this code: this.videoNode = document.querySelector('video'); const file: Buffer = fs.readFileSync(video.previewFilePath);