LiveListStore provides a complete set of live room management APIs, including starting live, joining live, leaving live, ending live and other functions. Through this class, you can manage the lifecycle of live rooms. The host calls startLive/endLive to start and dismiss a live room, while the audience calls joinLive/leaveLive to join and leave a live room.LiveListStore instance.Function | Description |
Singleton object. | |
Live list event callbacks. | |
Live list event callbacks. | |
Get live list. | |
Get live info. | |
Start live (Host only). | |
Join live (Audience only). | |
Leave live (Audience only). | |
End live (Host only). | |
Update live info. | |
Query metadata. | |
Update metadata. |
abstract fun addLiveListListener(listener: LiveListListener)
Parameter | Type | Required | Description |
listener | Required | Listener. |
abstract fun removeLiveListListener(listener: LiveListListener)
Parameter | Type | Required | Description |
listener | Required | Listener. |
abstract fun fetchLiveList(cursor: String?,count: Int,completion: CompletionHandler?)
Parameter | Type | Required | Description |
cursor | String? | Required | Cursor. |
count | Int | Required | Count. |
completion | CompletionHandler? | Required | Completion callback. |
abstract fun fetchLiveInfo(liveID: String,completion: LiveInfoCompletionHandler?)
Parameter | Type | Required | Description |
liveID | String | Required | Live room ID. |
completion | Required | Completion callback. |
abstract fun startLive(liveInfo: LiveInfo,completion: LiveInfoCompletionHandler?)
Parameter | Type | Required | Description |
liveInfo | Required | Live info. | |
completion | Required | Completion callback. |
abstract fun joinLive(liveID: String?,completion: LiveInfoCompletionHandler?)
Parameter | Type | Required | Description |
liveID | String? | Required | Live ID. |
completion | Required | Completion callback. |
abstract fun leaveLive(completion: CompletionHandler?)
Parameter | Type | Required | Description |
completion | CompletionHandler? | Required | Completion callback. |
abstract fun endLive(completion: StopLiveCompletionHandler?)
Parameter | Type | Required | Description |
completion | Required | Completion callback. |
abstract fun updateLiveInfo(liveInfo: LiveInfo,modifyFlagList: List<LiveInfo.ModifyFlag>,completion: CompletionHandler?)
Parameter | Type | Required | Description |
liveInfo | Required | Live info. | |
modifyFlag | List<LiveInfo.ModifyFlag> | Required | Modify flag. |
completion | CompletionHandler? | Required | Completion callback. |
abstract fun queryMetaData(keys: List<String>,completion: MetaDataCompletionHandler?)
Parameter | Type | Required | Description |
keys | List<String> | Required | Key list. |
completion | Required | Completion callback. |
abstract fun updateLiveMetaData(metaData: HashMap<String, String>,completion: CompletionHandler?)
Parameter | Type | Required | Description |
metaData | HashMap<String, String> | Required | Metadata. |
completion | CompletionHandler? | Required | Completion callback. |
Enum Value | Description |
FREE | Free to take seat. |
APPLY | Apply to take seat. |
Enum Value | Description |
VideoDynamicGrid9Seats | Portrait dynamic 9-grid layout for video live streaming. |
VideoDynamicFloat7Seats | Portrait dynamic 1v6 floating layout for video live streaming. |
VideoLeftFocus9Seats | Portrait left focus 9-grid layout for video live streaming. |
VideoUniformGrid9Seats | Portrait uniform 9-grid layout for video live streaming. |
VideoFixedGrid9Seats | Portrait static 9-grid layout for video live streaming. |
VideoFixedFloat7Seats | Portrait static 1v6 floating layout for video live streaming. |
VideoLandscape4Seats | Landscape 4-seat layout for video live streaming. |
Karaoke | Audio KTV layout for karaoke scenes with configurable seat count. |
AudioSalon | Audio salon layout for voice chat scenes with configurable seat count. |
Enum Value | Description |
ENDED_BY_HOST | Ended by host. |
ENDED_BY_SERVER | Ended by server. |
Enum Value | Description |
BY_ADMIN | Kicked out by admin. |
BY_LOGGED_ON_OTHER_DEVICE | Logged on other device. |
BY_SERVER | Kicked out by server. |
FOR_NETWORK_DISCONNECTED | Network disconnected. |
FOR_JOIN_ROOM_STATUS_INVALID_DURING_OFFLINE | Join room status invalid during offline. |
FOR_COUNT_OF_JOINED_ROOMS_EXCEED_LIMIT | Count of joined rooms exceed limit. |
Property | Type | Description |
liveID | String | Live ID. |
liveName | String | Live name. |
notice | String | Live notice. |
isMessageDisable | Boolean | Whether message is disabled. |
isPublicVisible | Boolean | Whether publicly visible. |
isSeatEnabled | Boolean | Whether seat is enabled. |
keepOwnerOnSeat | Boolean | Whether to keep owner on seat. |
maxSeatCount | Int | Maximum seat count. |
seatMode | Take seat mode. | |
seatTemplate | Seat layout template for simplifying seat configuration. | |
seatLayoutTemplateID | Int | Seat layout template ID. |
coverURL | String | Cover URL. |
backgroundURL | String | Background URL. |
categoryList | List<Int> | Category list. |
activityStatus | Int | Activity status. |
liveOwner | LiveUserInfo | Live owner info. |
createTime | Long | Create time. |
totalViewerCount | Int | Total viewer count. |
isGiftEnabled | Boolean | Whether gift is enabled. |
metaData | Map<String, String> | Metadata. |
open fun onLiveEnded(liveID: String, reason: LiveEndedReason, message: String) {}
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Ended reason. | |
message | String | Message. |
open fun onKickedOutOfLive(liveID: String, reason: LiveKickedOutReason, message: String) {}
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Kicked out reason. | |
message | String | Message. |
fun onSuccess(liveInfo: LiveInfo)
Parameter | Type | Description |
liveInfo | Live info. |
fun onFailure(code: Int, desc: String)
Parameter | Type | Description |
code | Int | Error code. |
desc | String | Error description. |
fun onSuccess(statisticsData: TUILiveListManager.LiveStatisticsData)
Parameter | Type | Description |
statisticsData | TUILiveListManager.LiveStatisticsData | Live statistics data. |
fun onFailure(code: Int, desc: String)
Parameter | Type | Description |
code | Int | Error code. |
desc | String | Error description. |
fun onSuccess(metaData: HashMap<String, String>)
Parameter | Type | Description |
metaData | HashMap<String, String> | Metadata. |
fun onFailure(code: Int, desc: String)
Parameter | Type | Description |
code | Int | Error code. |
desc | String | Error description. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback