mp4 文件通过 FFmpeg 转换至 hls 格式,客户端通过 hls.js 播放。 dependence yarn install mp4 convert to hls node mp4ToM3u8.js start hls server node server.js client play open index.html in the browser click play