See a lot of people have started to do a variety of live platform source development, asked me what questions SHOULD be paid attention to. In fact, the development of short video system, one-to-one system or one-to-many system is mainly based on the functions of voice and video, so it is inevitable to use the transmission of streaming media, so do a good job of system compatibility and product concurrency will always be a key point. In general, the following aspects:
Several modules of speech and video: echo cancellation, noise suppression, automatic gain, frame loss compensation, forward error correction, network jitter.
Protocols for streaming media transmission: RTMP, WEBRTC, HLS, HTTP-FLV, RTP/RTCP.
Terminal compatibility: Apple’s system is relatively simple, fully compatible with Android is more complex.
Massive user concurrency support: This is an area that requires experience and is not an issue for technologies that have done massive user concurrency on large scale systems.
Each terminal: MAC, WINDOWS, IOS, ANDROID.
Live video system source code, when the installation is mainly contains the following steps:
1. Source code installation requires your server space to support PHP+Mysql;
2. The source code package must be completely uploaded to the space, and decompressed;
3. Run http:// domain name //install and complete the installation as prompted.
4. After the installation is complete, you need to adjust and set other contents by yourself.Common function mechanism of source front-end of live App
1. Sorting mechanism of audience list in live broadcast room
Our common live broadcast platforms usually focus on the top three users, which is why we often hear anchors Shouting “pay attention to my top three users” in the live broadcast room, and the top three users will also have special logo display. Other users will be ranked according to user level, and the list will generally display 20 to 50 user portraits, and the list will be refreshed at a fixed time. The main reason for the design of this mechanism is to allow popular anchors to receive more gifts and rewards. We all know that rewards in broadcast rooms have a strong “impulse consumption” factor.
2. Disable the mechanism
Disabling users is a common platform operation for platform operators. Usually after the user is disabled in the background, the user cannot broadcast again or enter another person’s live broadcast room. For users in terms of the mammal in the speech, can be set as follows: if the user is in the air, at this point in the background will be banned users, users can have system message in the air, and can no longer speak, “banned time according to the request of platform choice, even lifted immediately, in the background after banned also needs time to speak again.
3. Guardian mechanism of anchors on live broadcasting platforms
The vast majority of operational platforms have the function of anchor guardian, and the duration of anchor guardian varies according to the operation requirements of different platforms. The opening of anchor guardian mainly provides users with the following privileges:
Identity: The host’s guardian icon is displayed in the chat area
Entrance effects: various special effects or customized greeting
Exclusive gift: exclusive gift can be set for users who open year-round guardian
No matter what kind of source code development you want to do for live broadcast platform, the source code development of live broadcast system cannot be avoided. Therefore, it is necessary to solve these problems in order to successfully complete the construction and online operation.