How Kuikly Powers 100% Cross‑Platform Game Live‑Streaming SDK on HarmonyOS

With the launch of HarmonyOS Next, the game live‑streaming SDK team leveraged the Kuikly cross‑platform framework to adapt their Android, iOS and web code to HarmonyOS, achieving 100% cross‑platform reuse across three platforms, cutting over 50% of development effort while boosting performance, stability and modularity.

Tencent TDS Service
Tencent TDS Service
Tencent TDS Service
How Kuikly Powers 100% Cross‑Platform Game Live‑Streaming SDK on HarmonyOS
Following the release of HarmonyOS Next, more apps are being adapted to the new system, prompting product and technical teams to plan the adaptation of the game live‑streaming SDK. Simply meeting technical goals is insufficient; the goal is to maximize the value of HarmonyOS adaptation. This article introduces a Kuikly‑based cross‑platform solution for HarmonyOS. Kuikly is a widely used cross‑platform development framework at Tencent, offering Kotlin‑based development for Android, iOS, HarmonyOS, Web, and mini‑programs, and is a key member of the Tencent Service Alliance.

Adaptation Work

Current Situation

The game live‑streaming SDK is a long‑standing core component used in games such as CODM, QQ Speed, Need for Speed, and AOV. Its product shape is similar across these apps, and the team aims to reuse the same code across multiple games and platforms, potentially saving more than 50% of manpower and significantly improving development efficiency.

New Work

After adding the HarmonyOS Next platform, the additional workload is expected to increase. The team needs to choose an adaptation plan that reduces cost while amplifying the value of the adaptation.

Diagram
Diagram

To ensure the technical plan is solid, the team first strengthened HarmonyOS development basics, covering ArkTS, custom components, declarative layout, multithreading, and multi‑process development.

Diagram
Diagram

Adaptation Goals

From the perspective of improving development efficiency, the team set two goals: low‑cost HarmonyOS adaptation and maximizing the value of the adaptation work.

Solution Design

The SDK has collaborated with the Kuikly team for nearly two years, achieving cross‑platform business on Android and iOS for multiple projects. For HarmonyOS, the same Kuikly foundation is used, with the native layer handling platform‑specific differences while the majority of logic remains shared.

The approach follows a "big common, small differences" principle: shared logic is written in Kotlin (KMP), while platform‑specific code is implemented in the native language.

Native Component Kuiklyization

To achieve 100% cross‑platform coverage, native business modules are embedded into Kuikly via custom component interfaces, creating KuiklyNativeView wrappers for native Views.

Diagram
Diagram

These wrappers allow Kuikly pages to nest other Kuikly pages, similar to Android Fragments, enabling flexible UI composition.

Full‑Screen Transparent Popup Mapping

For non‑full‑screen overlay scenarios (e.g., activity float layers), a transparent native Ability is used as a container for KuiklyNativeView, allowing the SDK to control size and position of overlay content.

Diagram
Diagram

Player Component Kuiklyization

Previously, the player was a native container with Kuikly slots, leading to heavy glue code. The new approach embeds the native player view into a KuiklyPlayerView, letting Kuikly manage its lifecycle, hierarchy, size, and position.

Diagram
Diagram

Danmaku & WebView Kuiklyization

Both the danmaku and WebView components are wrapped as Kuikly components to simplify business integration and operation.

Feature Modular Sharing

The SDK’s strong operational features often need to be shared across games. By encapsulating each feature in an independent KuiklyPager and using schema‑based routing, the team achieves weak coupling and easy configuration.

Diagram
Diagram

Iterative Standardization

By investing modest effort in establishing standardized processes—such as atomic native APIs, Kuikly business guidelines, schema management, CI pipelines, and review workflows—the team reduces technical debt and improves scalability.

Diagram
Diagram

Initial Effect

After the HarmonyOS adaptation, all business code runs on the Kuikly cross‑platform layer, achieving 100% code reuse across three platforms and multiple apps, with performance and product experience meeting expectations.

Diagram
Diagram

About Kuikly

Kuikly is now open‑source. Interested parties can learn more or get involved via the official documentation, GitHub repository, and Tencent service portals.

Official docs: https://kuikly.tds.qq.com/Introduction/arch.html

GitHub: https://github.com/Tencent-TDS/KuiklyUI

mobile developmentCross‑platformHarmonyOSGame SDKKuikly
Tencent TDS Service
Written by

Tencent TDS Service

TDS Service offers client and web front‑end developers and operators an intelligent low‑code platform, cross‑platform development framework, universal release platform, runtime container engine, monitoring and analysis platform, and a security‑privacy compliance suite.

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.