Multiplayer live broadcast system source code development, those things that have to be said

First of all, in the development of the source code of the multiplayer live broadcast system, the video has its broadcast protocol.
In principle, RTSP, RTMP, HTTP can be used for live broadcast and on-demand, but generally RTSP and RTMP are used for live broadcast, and HTTP is used for on-demand broadcast.
RTMP protocol RTMP (Real Time Message Protocol) is an application layer protocol, which relies on the underlying transport layer protocol (usually TCP) to ensure the reliability of information transmission.
After the TCP link is established, the RTMP protocol requires the client and server to establish an RTMP Connection through a "handshake", and then transmit control information on the Connection.
The RTMP protocol will format the data during transmission. In the actual transmission, in order to better achieve multiplexing, sub-packaging, and fairness of information, the sender will divide the Message into Chunks with Message ID, each Chunk It may be a separate Message, or it may be part of the Message.
The receiving end will restore the chunk to a complete message according to the length of the data contained in the chunk, the length of the message id and the length of the message, so as to realize the sending and receiving of information.
Secondly, for the development of the source code of the multiplayer live broadcast system, the following core functions should be realized:
1. Live broadcast function: This is no different from the traditional one-to-many live broadcast development. It can support live video RTMP streaming, and has interactive chat gifts. Rewards and other functions.
2. Multi-person video making friends function: Multi-person video linking microphone is a major feature, here can be a microphone position for multiple people, usually 7 people, after passing the application, you can get the microphone, mainly for making friends and chatting; it can also be 3 people The video link can be either by invitation or active application. Dynamic function: It is the form of a community square where users can post videos, pictures, texts and other dynamics.
3. Private chat: messages, groups. Among them, the group needs to consume diamonds to enter. The page for joining in the group chat application will show how many women are in the group, stimulating male users to join.
4. My: here are mainly some routines, you can edit and set personal information, friend conditions, member entrance, wallet functions, etc., all in this section.
Finally, the development of the source code of the multiplayer live broadcast system requires attention to the following difficulties during the technical development process:
1. The weak network environment still guarantees the transmission quality
. The essence of Lianmai is video call, and the most important indicator of video call is delay. Only with low latency, multiple guests can interact better. The low latency on the audience side can help any guest achieve a smooth experience when interacting with the microphone. Even when the network is poor, it needs to ensure a millisecond delay.
2. Multi-person interaction with microphones without pressure It
is not easy to make the online version of If You Are the One. A live broadcast room with 7 people on the same screen will have an increased impact on system memory, quality, and latency.
3. Audio and video high-definition restoration
More realistic pictures will bring a greater sense of security to the blind date guests, and high-definition audio and video quality is the prerequisite for the realization of "realness".

Guess you like

Origin blog.csdn.net/bogokj123/article/details/108256493