Last week, Brother Yu and several mobile developers ate and chatted. They all talked about the development of audio and video products. The threshold is much lower than before. Lao Ma, who is working hard in a startup company, has been doing Android application development. The boss hopes to use Clubhouse-like gameplay as their new business line. He started a long way to choose. 【Rongyun Global Internet Communication Cloud】
In fact, in China, thanks to the underlying construction of communication cloud service providers, even if there is no relevant vertical experience, it is not a fantasy to make a chat room product to enter this market. The difficult thing is how to meet the boss's requirements for speed.
Yuchaofang products use IM (instant messaging) and RTC (real-time audio and video) capabilities, and face hundreds of unclear APIs. Just integrating these two modules has exhausted my energy and lost my hair.
However, Lao Ma can still come out to talk to us because he has found a shortcut. He is connecting with a service provider. If it goes well, he will be able to "complete the KPI in one week and get the bonus."
Brother Yu thinks he is bragging because the overall audio and video business in my impression is still very complicated, with various wheat position management, real-time sound, and low latency requirements. I don't really believe it~
After further questioning, I learned that I chose the SDK of the PaaS vendor Rongyun. Speaking of Rongyun, I was very impressed. His founding team was the core figure in the previous development of "Fetion", which was a leverage in the communications field. Based on its strong IM and RTC advantages, Rongyun launched an SDK that encapsulates basic communication capabilities very early, and continues to refine it. In order to reduce the difficulty of use by developers, Rongyun has invested a lot of resources to develop a package of solutions for popular scenarios. Simplify complicated things.
Rongyun Yuchao Room SDK is the solution selected by Lao Ma, which meets the needs of most of the language chat room scenes, and also covers the actual needs of a series of derivative scenes.
"At the beginning of November, Rongyun's scenario-based language chat room Demo & SDK 2.0 was officially launched, adding two mainstream scenes, Lianmai PK and voice radio, as well as floating window display in the room, sliding to switch rooms, sending voice messages, and gifts. Practical functions such as full-service broadcasting and setting room shielding words cover all current popular language chat room scenes."
I went to their official website and researched it. It is indeed very simple, which greatly reduces the time cost and capital cost of development. Can quickly achieve business requirements.
example, the first step is to directly integrate the language chat room SDK, without separately integrating IM and RTC; another example, no more than 20 core APIs and no more than 5 core callbacks; another example: you can directly in the developer background of Rongyun Find the "open review" configuration and click on the configuration, which means one-click access to a third-party professional content review platform, which fundamentally eliminates the possibility of malicious dissemination of illegal content.
Powerful functions only meet the most basic needs of developers. And the one that attracted the most attention of Brother Yu was the "7 days online". This speed is simply unimaginable.
To this end, Brother Yu had an in-depth chat with Zang Qilong, the person in charge of Rongyun scene-based R&D.
Zang Qilong said that the key point that Rongyun can help developers to run the track is not only to open source, but also to encapsulate the business logic of the messy source code into an SDK and provide intuitive APIs. interface.
In this way, developers do not need to understand the underlying technical logic, as long as they have a basic understanding of the business, and know what is to create a room and leave a room; what is up and down, can quickly complete the development.
Brother Yu looked at Rongyun's development documents, and the code for creating the room was like this, which was indeed concise and easy to understand. The sample code is as follows:
/// 创建一个 RCVoiceRoomInfo 实例
RCVoiceRoomInfo rcVoiceRoomInfo = new RCVoiceRoomInfo();
/// 设置房间名称
rcVoiceRoomInfo.setRoomName(roomName);
/// 设置麦位数量
rcVoiceRoomInfo.setSeatCount(9);
///设置上麦模式(ture是自由上麦 false为申请上麦)
rcVoiceRoomInfo.setFreeEnterSeat(false);
///设置全麦锁座
rcVoiceRoomInfo.setLockAll(false);
///设置全麦锁麦
rcVoiceRoomInfo.setMuteAll(false);
// roomId 是您的业务服务器返回的
RCVoiceRoomEngine.getInstance().createAndJoinRoom(roomId, rcVoiceRoomInfo, new RCVoiceRoomCallback() {
@Override
public void onSuccess() {
//创建成功,自动加入房间
}
@Override
public void onError(int code, String message) {
//创建失败
}
});
For developers who are most concerned about how to implement a chat room and its function, there are three key technical points: KV chat room attributes, signaling SDK and API design. Brother Yu also asked Zang Qilong for detailed answers.
KV chat room attributes
KV chat room attributes, provide cloud storage of microphone status and notification synchronization capabilities. It can quickly synchronize the additions, deletions, and changes of any database within 20-40 milliseconds. In various language chat scenes such as wheat, different wheat positions correspond to the synchronization ability of different roles, and the timing ability to switch at any time.
Signaling SDK
The signaling SDK ensures orderliness. In the scenario of invitation and request for microphone loading, it can not only avoid the clutter caused by frequent loading and unloading, but also ensure that the applicants who apply for microphone loading come first come first, then come second, so that the user experience is smoother.
These two points are more difficult for self-developed developers, but they are the key technical points for the success of the development of a Yuchaofang product.
The third key technical point is API design, which Zang Qilong calls the "product facade".
API design
API design: The core is to conform to the user's usage habits, and the most natural is the most reasonable. For example, you should be able to send voices when you are in the microphone, but you can only listen to the voice when you are in the microphone.
For ease of use, Rongyun streamlines the SDK on the one hand, and keeps the total number of APIs to less than 20, thereby reducing users' learning costs. On the other hand, the design of the model gives users a great degree of freedom to expand the attributes, so as to meet the users' various creative needs, so that the powerful function and the diversity of coverage scenarios have both.
Brother Yu found that since the launch of Rongyunyu Chat Room 1.0 in June this year, product forms with different names but essentially the same have appeared on the market, such as voice Demo and karaoke room Demo.
For developers, how to judge and choose? Does Rongyun still have an advantage? Brother Yu carefully checked the implementation logic of these Demos and found that Rongyun still has certain advantages.
In terms of the difficulty of development, "The third-generation SDK only needs to understand the product concept, whether it is based on SDK development or sample development, it can be easily mastered."
This means that Rongyun’s contextualized language chat room SDK is the third-generation solution, and its biggest feature is that it encapsulates all the capabilities related to the scene without calling IM and RTC SDK separately.
The second-generation solution is the method currently used by other manufacturers. The difficulty of development requires developers to first understand the underlying logic of IM and RTC, and then face hundreds of APIs, and perform the second on the basis of source code. Times development.
In terms of implementation logic, the third generation is simpler than the second generation, saving a lot of the process of learning the underlying logic.
Brother Yu also learned a real small case:
"The developer first used the second-generation solution provided by a certain factory for the second opening. During the process, many problems were found to be difficult to solve. Switching to Rongyun Talking Room SDK 2.0, the project that was not completed for nearly three months before took only two weeks. The product goes online."
Zang Qilong said that since the launch of Yuchaofang 1.0, in just 5 months, 10 of the 20 customers that have been connected have been delivered and launched. He himself communicates with developers in the technical support group every day. The biggest relief is the feedback from the developers:
"Just read the notes and API name, you can basically master the usage, low learning cost, high development efficiency."
Language Chat Room 3.0 have?
Next, what new features will Rongyun Talking Room 3.0 have? Everyone moves the small bench and sits down. Brother Yu can now "disclose" the functions of sending gifts, sending emoticons, and receiving chat room information related to Maiwei users in the upper half of the interface will be further improved, and a series of high-performance Kit components, such as gift kits, asynchronously rendered chat room kits.
Here we can focus on the fully asynchronous rendering framework for chat rooms developed by Xiarongyun. Using this framework can ensure that the full frame can be run on very low-end mobile phones, bringing users a very smooth APP interactive experience.
Developers going overseas should consider that there will be very big differences in end-user mobile phones in different regions. If low-end mobile phones have a relatively high share of low-end mobile phones in underdeveloped countries, then the fully asynchronous rendering framework will be a good choice.
In the next 6 months, Rongyun will also open source 8-10 high-performance UI frameworks, while satisfying both iOS and Android, so that developers can more easily connect to scene-based SDKs and quickly build high-quality products.
In addition to Yuchaofang 3.0, the scene-based SDKs for conference meetings, 1V1 online chats, and online education are all on the product roadmap for the next stage of Rongyun.
Finally, if Brother Yu sums up such a development experience in one word, it is "building blocks." Rongyun provides the source code and the packaged SDK on it, which is equivalent to the provided building blocks, allowing developers to truly achieve "out of the box, plug and play", from 0 to 1, the shortest 7 days, generally three weeks can also be online A full-featured language chat room product.
Developers, especially those of small and medium-sized enterprises, don't need to build their own, no longer rack their brains for complex logic architecture, and don't need to spend time writing code and fixing bugs repeatedly. In a word, there are five words floating in the sky, coding is not a matter.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。