Copyright (c) 2024 Tencent. All rights reserved.
Module: TUILiveListManager @ TUIKitEngine.
Function: Live Room list APIS, the functions on this webpage only support to TUIRoomTypeLive room type.
TUILiveListManagerObserver
|
| Live Streaming Info Change Callback |
TUILiveListManager
|
| Set Event Callback |
| Remove Event Callback |
| Host starts live |
| Host stop live |
| Join live room |
| Leave live room |
| Modify live information. |
| Get live information. |
| Get a list of live rooms, with a maximum of 50 returned per fetch. |
StructType
|
| Live info |
| Live Streaming Statistics |
onLiveInfoChanged:modifyFlag:
onLiveInfoChanged:modifyFlag:
- (void)onLiveInfoChanged: | |
| (TUILiveModifyFlag)modifyFlag |
Live Streaming Info Change Callback
|
liveInfo | Live room info |
modifyFlag | Modify flag |
addObserver:
Set Event Callback
You can receive live room event notifications through TUILiveListManagerObserver.
removeObserver:
startLive:onSuccess:onError:
startLive:onSuccess:onError:
| |
| (TUILiveInfoBlock)onSuccess |
| |
Host starts live
|
liveInfo | Live info |
onError | Failure callback |
onSuccess | Success callback |
stopLive:onError:
| (TUIStopLiveBlock)onSuccess |
| |
Host stop live
|
onError | Failure callback |
onSuccess | Success callback |
joinLive:onSuccess:onError:
joinLive:onSuccess:onError:
| |
| (TUILiveInfoBlock)onSuccess |
| |
Join live room
|
onError | Failure callback |
onSuccess | Success callback |
roomId | Room identifier |
leaveLive:onError:
| (TUISuccessBlock)onSuccess |
| |
Leave live room
|
onError | Failure callback |
onSuccess | Success callback |
setLiveInfo:modifyFlag:onSuccess:onError:
setLiveInfo:modifyFlag:onSuccess:onError:
| |
| (TUILiveModifyFlag)modifyFlag |
| (TUISuccessBlock)onSuccess |
| |
Modify live information.
|
liveInfo | Live information. |
modifyFlag | Modifiable parameter. More details, see TUILiveModifyFlag. |
getLiveInfo:onSuccess:onError:
getLiveInfo:onSuccess:onError:
| |
| (TUILiveInfoBlock)onSuccess |
| |
fetchLiveList:count:onSuccess:onError:
fetchLiveList:count:onSuccess:onError:
| |
| |
| (TUILiveInfoListBlock)onSuccess |
| |
Get a list of live rooms, with a maximum of 50 returned per fetch.
|
count | Set the number of live lists to be obtained in each request. |
cursor | Set the index of live lists in each request. |
TUILiveInfo
Live info
|
activityStatus | The public parameter can control whether the live room can be seen by others. |
backgroundUrl | CoverUrl: Live room background, maximum support is 200 bytes. |
categoryList | Live room category tags, a single room supports up to 3 tags. |
coverUrl | CoverUrl: Live room cover, maximum support is 200 bytes. |
createTime | The room creation time (read-only). |
isMessageDisableForAllUser | The status of disabling for all user to send message in room (optional parameter for creating a room), default value: NO. |
isPublicVisible | The public parameter can control whether the live room can be seen by others. |
isSeatEnabled | The status of enabling seat. |
keepOwnerOnSeat | The ost automatically joins the mic after starting the live stream |
maxSeatCount | Maximum number of seat. |
name | Room name (Optional parameter, default is room ID, maximum support is 100 bytes). |
notice | Room notification (Optional parameter, default is room ID, maximum support is 100 bytes). |
ownerAvatarUrl | Room owner avatar URL: Default is the room creator's avatar URL (read-only). |
ownerId | Owner ID: Default is the room creator (read-only). |
ownerName | Room owner name: Default is the room creator's name (read-only). |
roomId | Room ID (String type, required parameter for creating room, maximum support is 48 bytes). |
roomInfo | Basic room info (deprecated) |
seatMode | Seat mode (only available after isSeatEnabled is true). |
viewCount | Total views (the count of user entering live room). |
TUILiveStatisticsData
Live Streaming Statistics
|
totalGiftCoins | Total gift coins |
totalGiftsSent | Total gifts sent |
totalLikesReceived | Total likes received |
totalUniqueGiftSenders | Total unique gift senders |
totalViewers | Total Views |