based on WebRTC of the MCU Open Source Projects Licode the environment to build
Due to the needs of the project, we need to build multi-person communication and investigate three common structures of multi-person communication:
1. The previous blog has been based on Codelab for three people chatting, a multi-person system based on Mesh structure. Specifically, the fake has n+1 client, then for each client needs to establish peerconnection with other N objects , which consumes a lot of bandwidth and CPU resources. For applications with fewer clients, the delay is small, the development is simple, the picture is not lost.
2.based onMCUthe structure of theMCUis the core function of video and audioMix. By mixing multiple signals together to achieve reduced bandwidth andCPUThe purpose of resource consumption. Forn+1aclients,each object as long as theMCUCreate apeerconnection, greatly reduce the resource consumption, applicable to a large number of clients, but the program will lose the picture quality, the implementation is more complex, theMCUserver performance requirements are high (encoding and decoding of multi-channel signals).
3. based on the Router structure, the structural conclusion is between 1 and 2 . Each client uploads the local signal to Routerand downloads the signal from the Router on the other client. This way, compared to the 1 scenario, you do not need to send the same local signal to each client, so the bandwidth consumption is approximately halved, without losing signal quality and increasing the number of clients.
support for multi-person communication WebRTC A lot of open source projects, here to choose Licode build the development environment, compared to other projects, Licode lighter, easier for beginners to learn, and it belongs to Router structure to meet the requirements.
Official Address : lynckia.com/licode/install.html
according to the guide to build, it is best FQ build the environment.
upon completion of the construction, its official Demo The effect is as follows. Tested under,5 phones, a computer at the same time online no problem, but the transmission delay around 1s .
Licode Environment Building of MCU open source project based on WEBRTC