Open oppo12312312 opened 4 years ago
Have you considered using a media server like nginx with nginx-http-flv-module? This would allow you to publish flv from ffmpeg and have any many consumers as you like. This would be using flv over http. If you really want websockets you could use node-media-server but I've found this to have a higher CPU load compared to nginx.
I used ffmpeg to convert RTSP into FLV, and used websocket to push to FLVJS. When there were two users connected, I directly transmitted the stream from the first ffmpeg to the second user, and then the second user client FLVJS reported an error: non-flv, Unsupported media type!