このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

TUILiveListManager

Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveListManager @ TUIKitEngine
Function: Live Streaming Related Interface

TUILiveListManager

TUILiveListManager

Function List
Description
Live Streaming Information Change Callback
Add Event Callback
Remove event callbacks
Modify Live Streaming Information
Retrieve Live Streaming Information
Getting the Live Stream List

Struct type

Function List
Description
Live Streaming Information

Enumeration Types

Enumeration Types
Description
Modify Flags for Live Streaming Room

onLiveInfoChanged

onLiveInfoChanged
OnLiveInfoChanged onLiveInfoChanged
(TUILiveInfo TUILiveInfo

TUILiveModifyFlag modifyFlag)

Live Streaming Information Change Callback

Parameters
Description
TUILiveInfo
Live Streaming Room Information
modifyFlagList
List of Changed Value Flags

addObserver

setObserver
void setObserver
(TUILiveListObserver observer)

Add Event Callback

You can receive live room event notifications through TUILiveListManagerObserver
Parameters
Description
observer
Instance to Monitor

removeObserver

removeObserver
void setObserver
(TUILiveListObserver observer)

Remove event callbacks

You can receive live room event notifications through TUILiveListManagerObserver
Parameters
Description
observer
Instance to Monitor

setLiveInfo

setLiveInfo
Future<TUIActionCallback> setLiveInfo
(TUILiveInfo TUILiveInfo

TUILiveModifyFlag modifyFlag)

Modify Live Streaming Information

Parameters
Description
roomId
Room ID
coverUrl
Profile Photo URL
categoryList
Live Room Category Tag
isPublicVisible
Is Public
activityStatus
Live room active status: user-defined Definition tag

getLiveInfo

getLiveInfo
Future<TUIValueCallBack<TUILiveInfo>> getLiveInfo
(String roomId)

Retrieve Live Streaming Information

Parameters
Description
callback
Callback of API call, used to notify the success or failure of the API call
roomId
Room ID

fetchLiveList

fetchLiveList
Future<TUIValueCallBack<TUILiveListResult>> fetchLiveList
(String cursor

int count)

Getting the Live Stream List

Parameters
Description
count
Number of Pulls each time
cursor
List Index

TUILiveModifyFlag

TUILiveModifyFlag

Modify Flags for Live Streaming Room

Enumeration
Value
Description
ACTIVITY_STATUS
0x0100
ActivityStatus: Live Room Activity Status, supports custom settings
COVER_URL
0x0200
CoverUrl: Live Room Cover
CATEGORY
0x0400
Category: Live Room Category
PUBLISH
0x0800
Publish: Live Room Public Tag

TUILiveInfo

TUILiveInfo

Live Streaming Information

Enumeration Types
Description
activityStatus
Live room active status: user-defined Definition tag
categoryList
Live Room Category Tag
coverUrl
Live Room Cover
isPublicVisible
Is Live Room Public
roomInfo
Room Information (Read Only)
viewCount
Total View Count