Video streaming over websockets using JavaScript

前端 未结 4 1635
梦谈多话
梦谈多话 2020-11-29 15:04

What is the fastest way to stream live video using JavaScript? Is WebSockets over TCP a fast enough protocol to stream a video of, say, 30fps?

4条回答
  •  粉色の甜心
    2020-11-29 15:38

    To answer the question:

    What is the fastest way to stream live video using JavaScript? Is WebSockets over TCP a fast enough protocol to stream a video of, say, 30fps?

    Yes, Websocket can be used to transmit over 30 fps and even 60 fps.

    The main issue with Websocket is that it is low-level and you have to deal with may other issues than just transmitting video chunks. All in all it's a great transport for video and also audio.

提交回复
热议问题