To attract an audience quickly, the host of a live broadcast often invites the host of another channel for co-hosting. Both hosts then engage in online contests, and audiences of both channels watch the hosts, send gifts, or cast votes for whichever host they like. This scenario, known as PK Host, is widely applied in entertainment apps.
This article describes how to use the Agora SDKs to implement a PK Host scenario.
You can use the Agora SDKs to implement the following features in your project:
|Real-time communication||With ultra low latency, the audience see and hear the host in real time.|
|Co-host across channels||Hosts from two channels engage in online contests, and audiences from both channels watch the hosts, send gifts, or cast votes.|
|Real-time messaging||Both the host and the audience can chat with each other through text messages.|
|Switching channels||Audiences can switch between channels to send gifts or cast votes to whichever host they like.|
|User status||Both the host and the audience are notified when a user joins or leaves the channel.|
|Real-time quality statistics||Before joining a channel or during the live broadcast, all users can check the network quality in real time.|
|Background music||For better interaction effects, the host can play background music when talking or singing.|
|Image enhancement||Basic image enhancement effects, including skin smoothening and cheek blushing, help the host look better.|
Agora recommends using the following SDKs or services to implement a PK Host scenario:
|Agora RTC SDK||Joins an RTC channel for real-time audio and video communication.|
|Agora RTM SDK||Logs into the RTM system and joins an RTM channel for sending and receiving text messages.|
|Third-party Image Enhancement SDK||Sets basic image enhancement effects, including skin smoothening and cheek blushing.|
Ultra low latency
Agora SD-RTN™ is the Agora proprietary network for audio and video transmission, covering more than 200 countries and regions. It uses the intelligent routing algorithms to ensure that the average end-to-end latency worldwide is less than 400 ms.
Stability and reliability
The Agora SLA (Service Level Agreement) ensures a 99%+ login success rate and 99.99% service accessibility throughout the year.
Excellent performance under poor network conditions
With an industry-leading algorithm designed to minimize the impact of packet loss, Agora guarantees smooth audio and video communication when the packet loss rate reaches 70%, and smooth audio communication when the packet loss rate is as high as 80%.
When a user's network bandwidth is poor, our self-adaptive strategy prioritizes the communication of the audio and the host.
High audio quality
The following technologies ensure that the speaker's voice always stands out from a noisy environment:
During interactive live streaming, adding voice changer and reverberation effects brings much fun and enhances the atmosphere of the live room. Agora provides an enriched selection of voice changer options, which developers can easily implement by calling an API.
Agora optimizes the video experience from the following perspectives:
Support for third-party services
For more enriched and diversified scenarios, you can easily import third-party services into your project, such as content moderation, image enhancement, and AR.
Agora SDKs are compatible with more than 6,000 devices, covering over 18 platforms and development architectures, including Windows, macOS, Web, iOS, Android, and Electron. This ensures that all users share the same experience.