Live software development Lianmai function analysis

In the course of live video, the user sees the picture is actually a one-way broadcast anchor live video broadcast server software developed image on the anchor received after transmission, distributed to the requester, unidirectional belonging content output. When a user requests and anchor appears even wheat, the nature of it changed by the one-way transmission of information streaming into a two-way transmission, if a user is watching live, he received information stream includes two anchors and even wheat user shares information flow.

To ensure that users can view voice messages received in time, live CDN platform will be used to distribute live content. That user receives information that it is not necessarily in the stream lines that line when the request to obtain information, but according to the load by the CDN server node reselects optimal lanes for distribution. For public service interactive live for many user groups, users must make in different areas receive the same live content at the same time, to ensure smooth screen and video transmission latency low.
Today's video broadcast software, using the RTMP protocol is widely used, the vast majority of live video is also based on wheat achieved even under the premise of CDN technology and RTMP protocol, when users connect anchor and wheat, will be on RTMP protocol, respectively, anchor Lianmai end and flow to the client pushed CDN, the CDN through two-way video playback pushed to end the playing end two video streams are mixed to form a picture playback.

Extension Technology Magic need to remind you that the problem when using the RTMP protocol and even the wheat CDN node
RTMP protocol ensures that broadcast delay control within 5s, this does not affect the viewing experience for the user is viewing, but even wheat users, You will feel a noticeable delay affect interactive experience.
When users connect anchor and wheat, will hear a clear echo, the current problem is more common and not resolved.

If you implement even the wheat, then the traffic will greatly increase the cost, live video software itself in terms of broadband, traffic and spending CDN nodes will use a lot of traffic, in order to achieve even wheat, spent two pieces of information streaming flow will be higher.
If you already have a huge user base, we must adapt to high concurrency, then the use of the solution in the RTMP and CDN technology, must have been the best, so you can ensure that most users end user's viewing experience; if not so high concurrency requirements high, but even wheat to the live broadcast delay demanding or less demanding, you can use the private UDP protocol solutions, this program is suitable for one or even wheat voice chat rooms.

Guess you like

Origin blog.51cto.com/14528075/2461966