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

Live Stream List (Web Desktop Browser)

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-14 20:07:46

Overview

This document provides a detailed introduction to the Live Stream List Page in the TUILiveKit Demo. You can directly integrate our pre-developed live stream list page into your existing project as specified in this document, or customize the page style, layout, and feature items according to your needs.


Quick Connection

Step 1: Configuring the Environment and Activating the Service

Before performing quick connection, you need to refer to Preparations to meet the required environment configuration and activate the corresponding service.

Step 2: Dependency Installation

You can choose any method below to install dependencies:
npm
pnpm
yarn
npm install tuikit-atomicx-vue3 @tencentcloud/uikit-base-component-vue3 --save
pnpm add tuikit-atomicx-vue3 @tencentcloud/uikit-base-component-vue3
yarn add tuikit-atomicx-vue3 @tencentcloud/uikit-base-component-vue3

Step 3: Live Stream List Page Integration

Create the live-list.vue file under your project. You can copy the following code directly to your project for seamless integration with the Live Stream List Page.
<template>
<UIKitProvider language="zh-CN">
<div class="container">
<header class="header">
<h1 class="title">Online Live Streaming</h1>
</header>
<main class="main">
<LiveList @live-room-click="handleLiveRoomClick" />
</main>
</div>
</UIKitProvider>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import { LiveList, type LiveInfo, useLoginState } from 'tuikit-atomicx-vue3';
import { UIKitProvider } from '@tencentcloud/uikit-base-component-vue3';

const { login } = useLoginState();

async function initLogin() {
try {
await login({
sdkAppId: 0, // SDKAppID, see Step 1 to obtain
userId: '', // UserID, see Step 1 to obtain
userSig: '', // userSig, see Step 1 to obtain
});
} catch (error) {
console.error('login error:', error);
}
}

onMounted(async () => {
await initLogin();
});
</script>

<style>:global(*),:global(::after),:global(::before){box-sizing:border-box;margin:0}.container{display:flex;flex-direction:column;height:100vh;width:100vw;background:var(--bg-color-default)}.header{display:flex;align-items:center;flex-shrink:0}.title{margin:0;font-size:24px;font-weight:600;color:var(--text-color-primary);letter-spacing:-.5px}.main{flex:1;padding:24px;overflow-y:auto;min-height:0}</style>

Step 4: Starting a Project

Run the command to generate the live stream list page. You can select the corresponding live streaming room to watch.
npm run dev

Tailor-Made

As shown in the above feature diagram, we also support you to customize the live list webpage UI based on project requirements. The main customization options are as listed in the table below.
Category
Function
Description
Live Room List
Custom live room list display
Supported:
Live room information text display/hide, UI customization
Custom fixed quantity display per line/column in live room
Personal information
Custom personal information display
Supported:
Show/Hide personal info
Personal info font, color UI customization

Designate a Live Streaming Room

To handle the redirect logic from the live list (or homepage) to the live streaming room, you need to configure Vue Router. In the src directory of your project, create a new router folder and create the index.ts file. Then, in your main file (such as main.ts or index.ts), import and use the router. See the GitHub sample code. If you need the live list, see the documentation for the Live Stream List Page.
// live-list.vue can be incrementally added to your code
<template>
<UIKitProvider>
// .....abbreviated part see quick integration procedure 3 part
<LiveList @live-room-click="handleLiveRoomClick" />
</UIKitProvider>
</template>

<script setup lang="ts">
import { useRouter, useRoute } from 'vue-router';

const router = useRouter();
const route = useRoute();

function handleLiveRoomClick(liveInfo: LiveInfo) {
if (liveInfo?.liveId) {
router.push({ path: '/live-player', query: { ...route.query, liveId: liveInfo.liveId } });
}
}

<script>

// src/router/index.ts
import { createRouter, createWebHistory } from 'vue-router';

const routes = [
{
// Route jumping to the viewing page
path: '/live-player',
component: () => import('../views/live-player.vue'),
},
];

const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;

// src/main.ts
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';

const app = createApp(App);
app.use(router);
app.mount('#app');

Next Steps

Congratulations! You have successfully integrated the live broadcast list page. Next, you can implement the anchor start page, audience viewing page, and other content. Please refer to the table below:
Function
Description
Experience Link
Host Streaming
The live streamer's entire live streaming process is supported, including pre-streaming preparation and post-streaming interactions.
Audience Viewing
Viewers can enter the live streamer's room to watch the live stream, connect to the microphone, view live stream room information, view online viewers, and display comments.


























도움말 및 지원

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

피드백