On July 24, the 3rd Global Internet Communication Cloud Conference (WICC 2021) was successfully held in Beijing. Thousands of developers went to a feast of communication cloud technology. In this conference, "Developer Service Ecology" was regarded as an important topic and attracted widespread attention from the entire industry chain. As the organizer of the conference, Rongyun, a leading global Internet communication cloud manufacturer, not only put forward the point of view of why it should serve developers well, but also brought solutions on how to build a developer service ecosystem.

For example, in the "Scenario-based Empowerment and Innovation" technology sub-forum, Rongyun front-end senior architect Zang Qilong delivered a keynote speech "Exploring the evolution direction of a new generation of PaaS services based on the language chat room scenario SDK." Yunyu Chat Room Demo is the carrier. By analyzing the business logic and technical key points of the language chat room scene, it conveys the product concept that can truly enable developers to use it out of the box. This is not only one of the solutions for the developer’s service ecology. First, it has also become a bright spot for developers in the technology sub-forum.

WICC 2021成功召开 融云带来 PaaS 服务演进方向新探索
Figure 1: Zang Qilong, senior architect of Rongyun front-end, delivered a speech

Be meticulous, stripping out the core business logic behind the scene

In the technical sub-forum, Zang Qilong first explained the original intention of encapsulating the first scene-based Demo. "Due to the demonstration effect of the Clubhouse and Tiya two language chat room products at the beginning of the year, the pan-entertainment field has a prosperous market for all kinds of language chat room apps. Demand. In response to this hot demand, Rongyun chose to use Yuchaofang products as the entry point to explore the new generation of PaaS services."

After further analyzing the functions of various chat rooms apps in the language, Zang Qilong found that although they look different, the scene structure is roughly similar. Its business logic can be defined as: the SDK that manages users to publish or subscribe to audio stream logic in the form of the above-mentioned Mai Xia Mai. The so-called mic-up means that the user enables the ability to publish audio streams, and other people in the room can hear the audio of the mic-bit master; when the mic-down means that the user turns into a normal user, he can only listen to the audio stream released by others, and cannot publish it himself.

Therefore, the Yuchaofang products produced by Rongyun follow this definition and abstract all the functions in the Yuchaofang App to form a relatively complete scene-based SDK. Based on this, the corresponding Demo is provided to facilitate developers to "out of the box" use". This is also the first time that Rongyun fully integrates the dual capabilities of IM and RTC at the bottom layer into an SDK interface for developers.

Hidden technical design difficulties, developers only need to pay attention to their own business demands

During the R&D process, Rongyun found through the logical analysis of Yuchaofang products that the key technical difficulties in the realization of business scenarios come from three aspects:

WICC 2021成功召开 融云带来 PaaS 服务演进方向新探索
Figure 2: Key points of the demo design technology of the language chat room

First, how to realize the cloud storage and notification of the microphone status. The change of the microphone status must be notified to everyone in the language chat room, including the audience and the anchor, and the App also needs to update the UI presentation according to the change of the microphone status.

To achieve this function, you must face complex business processes, such as how to subscribe to the stream? How to subscribe to the stream of the anchor? If the role of the Maiwei is switched from the audience to the anchor, it is also necessary to face the problem of how to publish the stream. In the scene-oriented SDK of Rongyun language chat room, these complex details have been completed based on Rongyun chat room attribute management (KV). Therefore, developers do not need to care about the logic of the subscription stream, and do not need to care about setting, deleting, obtaining and setting callbacks. After the attribute changes and the microphone status changes, you only need to use an EnterSeat interface to refresh the UI after receiving the callback. The two-step operation can be implemented.

Second, how to realize the request for the invitation to the wheat and the wheat row. This mainly involves the invitation mechanism and application mechanism in the App. For example, in the scenario where the host of the language chat invites one or more audiences to sing, the host sends an invitation, the invited audience receives the invitation, and the process of choosing to agree, cancel or decline. At this time, it is very important that the invitation mechanism can be delivered and received in time. Once the message is lost or out of order, it will directly affect the user experience.

In Rongyun Talking Room SDK, use Rongyun IM signaling and call RequestSeat to request microphone access. After receiving the RequestSeatListDidChange callback, the administrator will select Accept, reject, or even cancel after receiving the RequestSeatListDidChange callback and get the list of people applying for connecting microphone. To process the request. Then the audience that initiates the application will receive RequestSeatDidAccept or reject. In other words, the details have been completely hidden, and the developers only need to pass very straightforward naming, in 5 minutes or less, can understand the implementation of the entire process.

Third, how to design API. Zang Qilong emphasized that a simple but not simple API interface should be designed, which requires simple and convenient design for developers to call, and must cover all functions. For this reason, Rongyun adheres to three principles in its design:

Close to the business cannot be overly abstracted and separated from the business, which is just the opposite of the general SDK design principle;

It can be extended to cover all the scenes of the chat room, including special scenes such as werewolf killing, so extensions have been added to specific models, such as Maiwei's extra;

Concise and easy-to-use shielding redundant logic, such as shielding users from manually subscribing to streams, etc.

In this way, if the developer only needs the scenes of uploading and disabling microphones and calling, instead of functions such as "gifts" and "likes", using the Rongyun language chat room scene SDK can be achieved with only two callbacks. If you add "gifts", "likes" and single group chat scenes, you only need to drag the voice room mode module into your rss project, and it only takes 5 minutes to meet your needs. Therefore, Rongyun Talking Room Scenario SDK & Demo greatly saves developers' R&D costs, including time and personnel costs, and is a true "out-of-the-box" product.

Rongyun will focus its efforts in the next stage and provide more scenario-based Demos

Another advantage of using Rongyun, a chat room scene SDK, is that it provides security review capabilities. Zang Qilong promised to the developers that all users, including Rongyun Talking Room SDK and IMLib SDK, can focus their work on the development of core product capabilities when using CUHK. Rongyun’s security review capabilities can review images, texts, and Audio and video are fully fortified to eliminate business risks for customers in advance. In fact, not only this product, but Rongyun's IMKit and RTC both provide the same voice and video porn detection capabilities, and can intercept sensitive information in the background for the first time.

Regarding the future, Zang Qilong revealed that the coverage of different scenarios is an important force for the next stage of cloud integration. In order to help developers obtain high-quality product experience, Rongyun believes that only providing SDK and API interfaces is an "irresponsible" approach, because for a specific scenario, developers often have to look for hundreds of SDKs. There are dozens or more than a dozen SDKs suitable for their business logic, which is no easy task for developers.

Therefore, Rongyun will gradually provide scene-based demos for multiple popular scenes such as live broadcast scenes, conference scenes, and online education scenes, further simplifying developers' development costs. Being close to developers, refining and satisfying the common needs of developers, and being a trusted partner of developers is the original intention of Rongyun and will not change.

Concluding remarks

In this WICC, Rongyun proposed in the technical sub-forum to explore the evolution direction of a new generation of PaaS services based on the language chat room scenario SDK: With the increase in the number of SDKs, PaaS communication cloud vendors must deeply understand the business layers of different industries and expand the scenarios Competition of chemical capabilities. Rongyun took the lead in launching the language chat room scene demo product, practicing and leading the new growth point of the PaaS communication cloud track.


融云RongCloud
82 声望1.2k 粉丝

因为专注,所以专业