how to build multi-user video chatting web app using webRTC, node.js and socket.io

前端 未结 4 1963
长情又很酷
长情又很酷 2021-02-09 18:05

im trying to make a web app that supports multi-user video chatting. ive read an article about webrtc on \"getting started with webrtc\" (http://www.html5rocks.com/en/tutorials

4条回答
  •  青春惊慌失措
    2021-02-09 18:31

    WebRTC is peer-to-peer protocol(browser-to-browser) without server,So you must know about my browser i must know about your browser means(your browser codec,public ip,port,etc) then only we can able to communicate,so we are using signalling(socket.io:web socket two way communication protocol send some information about my browser ,and receive some information about you browser ,with nodeJS server then peer connection will establish)

    Three user communication is also possible in WebRTC using mesh network,see you send some information to me (browser information) at a same time you send this same information to other peer,when i receive some information about your i will send some information about me to you and other peer,the same thing will happen in other peer also.

    Here some detail about mesh network http://en.wikipedia.org/wiki/Mesh_networking

提交回复
热议问题