tencent cloud

Tencent Real-Time Communication

お知らせ・リリースノート
製品アップデート情報
Tencent Cloudオーディオビデオ端末SDKの再生アップグレードおよび承認チェック追加に関するお知らせ
TRTCアプリケーションのサブスクリプションパッケージサービスのリリースに関する説明について
製品の説明
製品概要
基礎概念
製品の機能
製品の強み
ユースケース
性能データ
購入ガイド
Billing Overview
無料時間の説明
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
課金に関するよくあるご質問
Refund Instructions
初心者ガイド
Demo体験
Call
コンポーネントの説明(TUICallKit)
Activate the Service
Run Demo
クイック導入
オフライン通知
Conversational Chat
クラウドレコーディング(TUICallKit)
AI Noise Reduction
インターフェースのカスタマイズ
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
公開ログ
よくある質問
ライブ配信
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
高度な機能
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
よくあるご質問
課金関連問題
機能関連
UserSig関連
ファイアウォールの制限の対応関連
インストールパッケージの圧縮に関するご質問
AndriodおよびiOS関連
Web端末関連
Flutter関連
Electron関連
TRTCCalling Web関連
オーディオビデオ品質関連
その他のご質問
旧バージョンのドキュメント
TUIRoom(Web)の統合
TUIRoom (Android)の統合
TUIRoom (iOS)の統合
TUIRoom (Flutter)の統合
TUIRoom (Electron)の統合
TUIRoom APIのクエリー
クラウドレコーディングと再生の実現(旧)
Protocols and Policies
セキュリティコンプライアンス認証
セキュリティホワイトペーパー
情報セキュリティの説明
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC ポリシー
プライバシーポリシー
データ処理とセキュリティ契約
用語集

LiveSeatStore

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-03-05 16:32:09

Introduction

LiveSeatStore provides a complete set of seat management APIs, including taking seat, leaving seat, locking seat, unlocking seat, kicking user off seat, remote device control, etc. Through this class, seat management functionality can be implemented in the live room.
Important:
Use the LiveSeatStore.create factory method to create a LiveSeatStore instance, passing a valid live room ID.
Note:
Seat state updates are delivered through the liveSeatState publisher. Subscribe to it to receive real-time updates of seat data in the room.

Features

Seat Management:Take seat, leave seat, lock seat, unlock seat operations
User Management:Kick user off seat, move user to specified seat
Device Control:Remote control of user's camera and microphone
Event Listening:Listen to seat-related events

Subscribable Data

LiveSeatState fields are described below:
Property
Type
Description
seatList
ValueListenable<List<SeatInfo>>
Seat list.
canvas
ValueListenable<LiveCanvas>
Canvas information.
speakingUsers
ValueListenable<Map<String, int>>
Speaking users.
avStatistics
ValueListenable<List<AVStatistics>>
Audio and video statistics.

API List

Function
Description
Create seat management instance.
Seat event callbacks.
Seat event callbacks.
Take seat.
Leave seat.
Lock seat.
Unlock seat.
Kick user off seat.
Move user.
Open remote camera.
Close remote camera.
Open remote microphone.
Close remote microphone.

Creating Instance

LiveSeatStore.create

Create seat management instance

Observing State and Events

addLiveSeatEventListener

Add seat event listener
void addLiveSeatEventListener(LiveSeatListener listener);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
listener
Required
Listener.

removeLiveSeatEventListener

Remove seat event listener
void removeLiveSeatEventListener(LiveSeatListener listener);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
listener
Required
Listener.

Seat Operations

takeSeat

Take seat
Future<CompletionHandler> takeSeat(int seatIndex);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
seatIndex
int
Required
Seat index.

leaveSeat

Leave seat
Future<CompletionHandler> leaveSeat();
Version
Supported since version 3.5.

lockSeat

Lock seat
Future<CompletionHandler> lockSeat(int seatIndex);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
seatIndex
int
Required
Seat index.

unlockSeat

Unlock seat
Future<CompletionHandler> unlockSeat(int seatIndex);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
seatIndex
int
Required
Seat index.

User Management

kickUserOutOfSeat

Kick user off seat
Future<CompletionHandler> kickUserOutOfSeat(String userID);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.

moveUserToSeat

Move user to seat
Future<CompletionHandler> moveUserToSeat({
required String userID,
required int targetIndex,
MoveSeatPolicy policy = MoveSeatPolicy.abortWhenOccupied,
});
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.
targetIndex
int
Required
Target seat index.
policy
Required
Move policy.

Remote Device Control

openRemoteCamera

Open remote camera
Future<CompletionHandler> openRemoteCamera({
required String userID,
required DeviceControlPolicy policy,
});
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.
policy
Required
Device control policy.

closeRemoteCamera

Close remote camera
Future<CompletionHandler> closeRemoteCamera(String userID);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.

openRemoteMicrophone

Open remote microphone
Future<CompletionHandler> openRemoteMicrophone({
required String userID,
required DeviceControlPolicy policy,
});
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.
policy
Required
Device control policy.

closeRemoteMicrophone

Close remote microphone
Future<CompletionHandler> closeRemoteMicrophone(String userID);
Version
Supported since version 3.5.
Parameters
Parameter
Type
Required
Description
userID
String
Required
User ID.

Data Structures

MoveSeatPolicy

Move seat policy
Enum Value
Description
abortWhenOccupied
Abort when occupied.
forceReplace
Force replace.
swapPosition
Swap position.

DeviceControlPolicy

Device control policy
Enum Value
Description
unlockOnly
Unlock only.

SuspendStatus

User suspend status
Enum Value
Description
none
Not suspended.
inBackground
User suspended in background.
inCalling
User is on a phone call.

LiveSeatListener

Seat related callback events.
Methods
Method
Description
onLocalCameraOpenedByAdmin
Triggered when the local camera is opened by an admin.
onLocalCameraClosedByAdmin
Triggered when the local camera is closed by an admin.
onLocalMicrophoneOpenedByAdmin
Triggered when the local microphone is opened by an admin.
onLocalMicrophoneClosedByAdmin
Triggered when the local microphone is closed by an admin.

SeatUserInfo

Seat user information
Property
Type
Description
userID
String
User ID.
userName
String
User name.
avatarURL
String
Avatar URL.
role
User role.
liveID
String
Live room ID.
microphoneStatus
Microphone status.
allowOpenMicrophone
bool
Whether microphone can be opened.
cameraStatus
Camera status.
allowOpenCamera
bool
Whether camera can be opened.
userSuspendStatus
User suspend status.

RegionInfo

Seat view coordinate information
Property
Type
Description
x
int
X coordinate.
y
int
Y coordinate.
w
int
Width.
h
int
Height.
zorder
int
Z-order.

AVStatistics

Audio and video statistics information
Property
Type
Description
userID
String
User ID.
videoBitrate
int
Local video bitrate.
videoWidth
int
Local video width.
videoHeight
int
Local video height.
frameRate
int
Local video frame rate.
audioSampleRate
int
Audio sample rate.
audioBitrate
int
Audio bitrate.

SeatInfo

Seat information
Property
Type
Description
index
int
Seat index.
isLocked
bool
Whether locked.
userInfo
User information.
region
Region information.

LiveCanvas

Live canvas
Property
Type
Description
w
int
Width.
h
int
Height.
templateID
int
Template ID.

LiveSeatState

Seat state data provided by LiveSeatStore.
Property
Type
Description
seatList
ValueListenable<List<SeatInfo>>
Seat list.
canvas
ValueListenable<LiveCanvas>
Canvas information.
speakingUsers
ValueListenable<Map<String, int>>
Speaking users.
avStatistics
ValueListenable<List<AVStatistics>>
Audio and video statistics.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック