tencent cloud

Tencent Real-Time Communication

소식 및 공지 사항
제품 업데이트
Tencent Cloud 오디오/비디오 단말 SDK 재생 업그레이드 및 권한 부여 인증 추가
TRTC 월간 구독 패키지 출시 관련 안내
제품 소개
제품 개요
기본 개념
제품 기능
제품 장점
응용 시나리오
성능 데이터
구매 가이드
Billing Overview
무료 시간 안내
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
과금 FAQ
Refund Instructions
신규 사용자 가이드
Demo 체험
Call
개요(TUICallKit)
Activate the Service
Run Demo
빠른 통합(TUICallKit)
오프라인 푸시
Conversational Chat
온클라우드 녹화(TUICallKit)
AI Noise Reduction
UI 사용자 정의
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
릴리스 노트
FAQs
라이브 스트리밍
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Demo 실행
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDK 다운로드
API 코드 예시
Usage Guidelines
API 클라이언트 API
고급 기능
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
콘솔 가이드
애플리케이션 관리
사용량 통계
모니터링 대시보드
개발 보조
Solution
Real-Time Chorus
FAQs
과금 개요
기능 관련
UserSig 관련
방화벽 제한 처리
설치 패키지 용량 축소 관련 질문
Andriod 및 iOS 관련
Web 관련
Flutter 관련
Electron 관련
TRTCCalling Web 관련
멀티미디어 품질 관련
기타 질문
Protocols and Policies
컴플라이언스 인증
보안 백서
정보 보안에 관한 참고 사항
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약
용어집

Live Stream List (React Native)

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-23 11:13:45
This guide shows you how to quickly integrate the Live Stream List page, enabling users to browse available live streams and preview live room details.

Feature Preview



Quick Integration

Step 1: Activate the Service

Refer to the Activate Service document to enable the trial version or activate the Pro Edition package.

Step 2: Code Integration

See Preparation for instructions on integrating TUILiveKit.
Ensure that react-native-safe-area-context is installed. If it is missing, install it with:
yarn add react-native-safe-area-context

Step 3: Add the Live Stream List Page

TUILiveKit provides a ready-to-use UI and business logic for the Live Stream List in live streaming scenarios. Simply configure the entry point to call LiveListPage according to your business logic, then use the following steps to navigate to the Live Stream List page.
Note:
This example uses useState to demonstrate simple page switching. For production apps, it is recommended to use navigation libraries like React Navigation for page management. To understand how to integrate navigation libraries, refer to React Navigation official documentation.

/**
* Simple navigation example - using useState to manage page transitions
*/
import React, { useState } from 'react';
import { View, Button, StyleSheet } from 'react-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { LiveListPage } from 'react-native-tuikit-live';

type PageType = 'home' | 'liveList' | 'liveEnd' | 'liveAudience';

function MyApp() {

const [currentPage, setCurrentPage] = useState<PageType>('home');

// Navigate to the Live Stream List page
const handleJumpLiveList = async () => {
setCurrentPage('liveList');
};

// Return from the Live Stream List page
const handleBackFromLiveList = () => {
setCurrentPage('home');
};

return (
<SafeAreaProvider>
{currentPage === 'home' && (
<View style={styles.container}>
<Button title="Go to Live Stream List" onPress={handleJumpLiveList} />
</View>
)}

{currentPage === 'liveList' && (
<LiveListPage
onBack={handleBackFromLiveList}
/>
)}

{currentPage === 'liveEnd' && (
<View style={styles.container}>
<Button title="Back to Home" onPress={() => setCurrentPage('home')} />
</View>
)}
</SafeAreaProvider>
);
}


const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
});


export default MyApp;

Customize UI Layout

TUILiveKit supports flexible customization of the Live Stream List page’s features and appearance, allowing you to tailor the layout to your business requirements.

Adjust the Number of Live Rooms Per Row

You can set how many live rooms appear in each row by modifying the element count in the tuikit-atomic-x/src/components/LiveList.tsx file. The default configuration is as follows:
const CARD_WIDTH = (SCREEN_WIDTH - CONTAINER_PADDING * 2 - CARD_GAP) / 2; // two per line

// Group the live stream list with two elements per line
const groupedLiveList = useMemo(() => {
const groups: LiveInfoParam[][] = [];
for (let i = 0; i < filteredLiveList.length; i += 2) {
groups.push(filteredLiveList.slice(i, i + 2));
}
return groups;
}, [filteredLiveList]);
To show one live room per row, update the logic as follows:
const CARD_WIDTH = (SCREEN_WIDTH - CONTAINER_PADDING * 2); // one per line

const groupedLiveList = useMemo(() => {
const groups: LiveInfoParam[][] = [];
for (let i = 0; i < filteredLiveList.length; i += 1) { // change 2 to 1
groups.push(filteredLiveList.slice(i, i + 1)); // change 2 to 1
}
return groups;
}, [filteredLiveList]);
Resulting UI is as follows:


Next

You’ve now integrated the Live Stream List feature. To continue, add host streaming and audience viewing capabilities. See the table below for details:
Feature
Description
Integration Guide
Host Streaming
Implements the complete host streaming workflow, including pre-stream setup and interactive features after going live.
Audience Viewing
Enables audience members to enter the host’s live room and watch the stream, supporting guest co-hosting, live room details, online audience list, and live comments.

FAQs

Why is the Live Stream List page empty after integration?

If the Live Stream List page is blank, verify that you have completed the login steps. For testing, use two devices: start a live stream on one device as the host, and use the other device to open the Live Stream List page and view available live rooms.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백