Recently, Rongyun live broadcast SDK 2.1 was launched. On the basis of 7 kinds of confluence layouts to meet all the popular scenes of live broadcast, the PK capability has been launched, providing developers with the best operation method to enrich live broadcast content and increase user activity. Follow [Rongyun Global Internet Communication Cloud] to learn more
Live broadcast is far and wide, rich in content to "beat the world"
According to the "2021 China Online Live Streaming Industry Development Research Report" recently released by iiMedia Research, it is estimated that the number of online live streaming users in China will reach 660 million in 2022.
According to the report, the integrity of the industry chain is one of the main driving forces for the continuous and rapid development of the online live broadcast industry. The report sorts out the live broadcast industry map composed of MCN institutions, live broadcast platforms, technical support and equipment provision, etc., and shows excellent cases.
Rongyun was selected into the map with complete solutions such as live broadcast scene SDK, IM + RTC + CDN + beauty + audit and so on, which are close to the market.
(China online live broadcast industry map, source iiMedia Research)
The report shows that 46.1% of domestic online live broadcast users watch live broadcasts 4-5 times in a week; more than 60% of users watch live broadcasts for an average of 30 minutes to 1 hour.
Most users watch the live broadcast with a single and boring output content for a short period of time. Only high-quality and distinctive live broadcast content can attract more users to stay in the live broadcast room.
Data.ai's "2022 Mobile Market Report" verifies the growth trend of the live broadcast industry from another perspective. In 2021, users will spend 70% of their time on social and photo and video applications. Among them, the usage time of the top 25 live broadcast apps increased by 40% year-on-year.
(Global online live broadcast application growth trend, source data.ai)
The report also showed another facet of the boom in the live-streaming market, with a similar increase in consumer spending. Users hope to support their favorite streamers with rewards, providing a monetization path for content creators in the creator economy.
PK best practice with only 7 APIs
The general consensus is that with the gradual disappearance of the Internet demographic dividend, diversified live broadcast content ecology and rich gameplay innovation are the keys to retaining users.
Enriching content and innovative gameplay has always been the main way for products such as live streaming to unleash their imagination and continue to innovate. For example, adding family and other mechanisms to the live broadcast, and enhancing the activity of the product and achieving user growth through gameplay design such as family arena competitions. This requires the product to have the ability of PK.
In other live broadcast applications without family gameplay, PK reward is also the golden key to unlock the door to revenue. Therefore, PK will appear in almost all mainstream live broadcast products.
Rongyun Live SDK 2.1 extracts and encapsulates the implementation logic of live PK, which is easy to integrate and has a simple interface. 7 APIs cover the entire process of live video PK:
Initiate PK Invitation : The host invokes the Initiate PK interface to initiate an invitation. The invited host agrees to start the PK and refuses to transmit the reason.
If the invited party is PK, the initiator will also receive a notification, which fully meets the needs of the scene.
Cancel PK Invitation: host calls the cancel PK interface to cancel the sent invitation.
After the invited host receives the callback, the notification that the other party cancels the PK invitation can be displayed.
agree and open PK: The invited host calls the agree PK interface, agrees to the PK invitation, and opens PK at the same time.
The host who initiated the PK invitation receives the callback that the other party agrees to the PK and the start of the PK.
Reject PK invitation: The invited host calls the reject PK interface to reject the PK invitation.
The host who initiated the PK invitation received the callback that the other party rejected it.
host voice control: host can call the voice control interface to close or open the other party's voice.
End PK: Any host can call the end PK interface to actively end the PK.
The host of the other party can display the notification of the end of the PK by the other party through the callback.
Restore PK: the host of either party exits the room abnormally and re-enters the room, he can call the restore PK interface to restore the PK.
Encapsulation is "complex", output is "simple"
Encapsulating complex processes and accessing several APIs can realize a product. This is a concept that has gradually become common sense with the popularity of object-oriented programming.
For developers, it is a productivity revolution to hide some implementation methods and execution steps of the program, and to achieve access and invocation capabilities only through the interface. For example, the IM SDK that Rongyun first started to provide encapsulates the ability of instant messaging and provides it to developers in the form of PaaS services.
Now, instant messaging is so common in our daily life that everyone ignores the high complexity behind this encapsulated technology. But in fact, a message has to go through many levels from sending to receiving, and it is actually one of the most technically difficult applications in the Internet.
Starting from the provision of IM instant messaging, to IM+RTC, to the integration of rich communication peripheral capabilities X, and the complete packaging of scenes such as chat rooms and live broadcasts, a series of third-generation scene-based SDKs have been launched.
The product path of Rongyun also follows the key principle of encapsulation, hides a lot of underlying details, sorts out the business logic of common and high-frequency scenarios, provides it to developers in the form of SDK, and is closer to the market step by step.
Among them, the live SDK has built-in 7 confluence layout modes including one-to-one, two-person, three-person, four-square, seven-square, and nine-square layout, and supports customization. Through simple interface calls, developers can quickly realize the function of video live broadcast and microphone connection, which provides a great help for live broadcast applications and applications that integrate live broadcast capabilities with rich gameplay and active applications.
This live broadcast SDK upgrade provides PK capabilities to better serve customers' needs for content ecological construction and business development.
All of these are based on the in-depth understanding and practical ability of the industry after Rongyun supports a large number of developers to explore the field of pan-entertainment, and condenses and integrates the practical results, and outputs them to more developers.
Scenario SDK hides complex underlying technologies, incomprehensible programming syntax, and cumbersome technical details through the standardized logic extraction and encapsulation of core scenarios, improving development efficiency, but at the same time ensuring certain scalability. Customer needs continue to innovate and iterate.
The implementation logic of live broadcast PK is roughly the same as the dual microphone mode of live broadcast SDK2.0. Therefore, for users who have access to the previous version 2.0, the business scenario of live broadcast PK can be realized without additional learning costs.
In addition, in addition to the core capabilities required for the realization of live broadcast applications, CDN, beauty, content review and other peripheral capability components necessary for subsequent business development, Rongyun can provide complete solutions to help developers efficiently develop products with a strong ecosystem , quickly online business.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。