node推流和拉流服务

流程

  1. 分别在server和client里执行npm start

推流实现

使用ffmepeg:

ffmpeg -re -i d:\下载\xxx.mp4 -c copy -f flv rtmp://localhost:1935/live/x

拉流实现

直接client目录里通过flv.js