Live Video Stream on a Node.js Server

前端 未结 1 858
南旧
南旧 2021-01-30 03:18

I have been researching this a lot but am frustrated as I feel like the solution should be simple though I know wont be. Ideally i\'d just want to use node to h

相关标签:
1条回答
  • 2021-01-30 03:55

    Try to be clear and specific. First, you are not using WebRTC here. getUserMedia() is a part of navigator WebAPI which you are using to get media stream from the camera.

    Using WebRTC means you are using ICE and STUN/TURN servers for the purpose of signaling. You will use your host server(Node) for specifying ICE configuration, identify each user and provide a way to call each other.

    If you want to stream it through your host, probably you should stream it in chunks and set up your own signaling infrastructure. You can use Stream API with socket io to stream data in chunks(packets). See here Stream API(socket.io)

    Also, you can check out the live example of WebRTC + Socket.io here: Socket.io | WebRTC Video Chat

    You can find out more information here: sending a media stream to Host server

    0 讨论(0)
提交回复
热议问题