Build a Live PK Audio/Video Chat in Android in 5 Minutes with NetEase Cloud

This tutorial walks you through the complete Android integration process for NetEase Cloud's live PK (peer‑to‑peer) audio‑video streaming, from cloning the demo repository and configuring the project to obtaining an APP_KEY, registering, and finally testing the PK live demo.

NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Build a Live PK Audio/Video Chat in Android in 5 Minutes with NetEase Cloud

In 2021, audio social networking surged online, and voice‑based social platforms became a new hotspot. Live PK (peer‑to‑peer) interaction opens a fresh social lane, and live platforms need innovative features to meet growing user demands.

Live platforms with PK interaction boost user participation, happiness, and stickiness, making PK live a crucial capability.

This NetEase Cloud mini‑class teaches you how to implement an Android PK live scenario in just five minutes.

Step 1

Open the webpage https://github.com/netease-im/OnlinePK and view the repository.

Step 2

Select "Code", copy the HTTPS address, and download the project with git clone <HTTPS‑URL>.

Step 3

Open Android Studio, choose File → Open and open the downloaded OnlinePK-Android root directory.

Step 4

Search for lib-basic under build.gradle.

Step 5

Enter your APP_KEY in the designated location.

How to Obtain APP_KEY

If you are already a NetEase Cloud developer, retrieve the APP_KEY directly from the NetEase Cloud console.

For first‑time users, register an account at https://yunxin.163.com/ , create an application, and click “App_Key Management” to get the key. Before inserting the APP_KEY into the project, contact your sales manager to enable the required permissions and configure the “message copy address”.

Step 6

Register an account on the NetEase Cloud platform and log in.

Step 7

Debug and experience the PK live demo.

Conclusion

The NetEase Cloud live PK solution enables developers to integrate PK interaction with just three steps and launch within a week, meeting requirements for scalability, maintainability, and cross‑device compatibility while satisfying broadcasters and viewers on latency, audio‑video quality, echo cancellation, and background music.

Interested developers can read the full article “Rich Live Experience: NetEase Cloud Launches Live PK Solution” and try it for free.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

tutorialmobile-developmentpklive-streaming
NetEase Smart Enterprise Tech+
Written by

NetEase Smart Enterprise Tech+

Get cutting-edge insights from NetEase's CTO, access the most valuable tech knowledge, and learn NetEase's latest best practices. NetEase Smart Enterprise Tech+ helps you grow from a thinker into a tech expert.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.