tencent cloud

Mobile Live Video Broadcasting

Release Notes and Announcements
TUILiveKit Release Notes
Live SDK Release Notes
User Guide
Product Introduction
Overview
Strengths
Performance Statistics
Concepts
Purchase Guide
TRTC Live Billing Overview
Billing of Video Live Component
Activating the Service (TUILiveKit)
Free Demo
Demo
Run Demo(TUILiveKit)
Integration Guide
Video Live Streaming
Preparation
Host Live Streaming
Audience Viewing
Live Stream List Live Stream List
Voice Chat Room
Preparation
Host Live Streaming
Audience Viewing
Live Stream List
Live Streaming Kit
Live Streaming Kit(Electron Desktop Application)
Live Streaming Kit(Web Desktop Browser)
Live Broadcast Monitoring
Monitoring Webpage (Web Desktop Browser React)
Monitoring Webpage (Web Desktop Browser Vue)
UI Customization
Live Stream Video Component
Video Source Editing Canvas
Audience List Component
Barrage Component
Media Source Configuration Panel
Link Management Panel
Live Gift Component
No UI Integration
Video Live Streaming
Voice Chat Room
Feature Guide
Follow Anchors (TUILiveKit)
Ultimate Image Quality (TUILiveKit)
Push Media Stream Into Room (TUILiveKit)
Gift System (TUILiveKit)
Client APIs
Android
iOS
Web
Server APIs (TUILiveKit)
Account System
REST API
Third-Party Webhooks
Error Codes (TUILiveKit)
FAQs
Platform Compilation
User Authentication
Live SDK
Product Introduction
Purchase Guide
Free Demo
Free Trial License
SDK Download
Licenses
Advanced Features
Client API
FAQs
Integration (No UI)
API Documentation
OSS information
OSS Attribution Notice

Android

Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-11 13:01:43
This guide walks you through setting up the TUILiveKit Android Demo in just 10 minutes. You’ll experience a fully featured video live streaming and voice chat room with a complete UI interface.

Quick Experience

You can directly experience all Live features using the following methods.


Prerequisites

Enable the Service

Refer to Enable the Service to obtain a TUILiveKit trial version. Then, go to TRTC Console for application management, and get the following:
SDKAppID: Application identifier (required). Tencent Cloud uses SDKAppId for billing and details.
SDKSecretKey: Application secret key, used to initialize the configuration file with secret information.

Environment Preparation

Android 5.0 (API level 21) or above
Gradle 8.0 or above
Two Android devices running 5.0 or above

Instructions

Get the Demo

1. Download the source code: Download the TUIKit_Android source code from GitHub, or run the following command in your terminal:
2. Open the project: Open the TUILiveKit Android project in Android Studio:


Setup

1. Configure SDKAppID and SDKSecretKey: Open the TUIKit_Android/application/debug/src/main/java/com/tencent/qcloud/tuikit/debug/GenerateTestUserSig.java file and enter your SDKAppID and SDKSecretKey:


Build and Run the Demo

1. In the upper right corner of Android Studio, select the device where you want to run the Demo:

2. Click Run to deploy TUIKit_Android to the selected device.

Note:
For a complete live streaming experience, log in to the Demo on two devices with different users—one as the host, the other as the audience.

Experience the Basic Features

1. Login & Registration

Enter your ID in the UserID field. If the UserID has not been used before, you’ll be redirected to the registration page to set your avatar and nickname.
Anchor(mike)
Audiece(vince)












Note:
Do not use simple UserIDs such as "1", "123", or "111".
TRTC does not support multi-end login for the same UserID, and these simple UserIDs are likely to be used by others during collaborative development, which can cause login failures. Use distinctive UserIDs during debugging.

2. Video Live Streaming

Click Live > Video Live to start a video live streaming session.
Live Streaming List
Host Preview Before Going Live
Host Starts Video Live Streaming
Audience Watches Live Stream













3. Voice Chat Room

Click Live > Voice Room to start a voice chat session.
Live Streaming List
Host Preview Before Going Live
Host Starts Voice Chat Live
Audience Joins Voice Chat Room







Next Steps

After running the Demo, refer to the following integration guides to add these features to your own project:
Name
Description
Integration Guide
Video Live Streaming
Supports ultra-low latency HD streaming, multi-user co-hosting/PK, real-time beauty filters, bullet comments, and gift interactions—enabling you to build interactive video live streaming scenarios.
Voice Chat Room
Delivers ultra-clear audio quality, supports multi-user co-hosting, seat management, and real-time text chat—ideal for KTV, social, or gaming-themed rooms.

FAQs

Demo reports signature error or login failure?

Verify that the SDKAppID and SDKSecretKey in TUIKit_Android/application/debug/src/main/java/com/tencent/qcloud/tuikit/debug/GenerateTestUserSig.java are correct. Ensure they match the values from the TRTC Console page.

Will running the Demo be affected if Gradle version is below 8.0?

Yes. If your Gradle version is below 8.0, you may encounter dependency download failures or build errors. Upgrade your Gradle version in Android Studio to meet the requirements.

After entering the room, you may encounter error code "-3301" with the message "Services are not available in your region."

If you receive this error code, contact us for support.

Contact Us

If you have any questions or suggestions during running the demo or usage, join our Telegram technical group or contact us for support.


Ajuda e Suporte

Esta página foi útil?

comentários