Function | Description |
Singleton object. | |
Live list event publisher. | |
Get live list. | |
Get live info. | |
Create live. | |
Join live. | |
Leave live. | |
End live. | |
Update live info. | |
Query metadata. | |
Update metadata. |
public func fetchLiveList(cursor: String,count: Int,completion: CompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
cursor | String | Required | Cursor. |
count | Int | Required | Count. |
completion | Required | Completion callback. |
public func fetchLiveInfo(liveID: String,completion: LiveInfoCompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
liveID | String | Required | Live room ID. |
completion | LiveInfoCompletionClosure? | Required | Completion callback. |
public func createLive(_ liveInfo: LiveInfo,completion: LiveInfoCompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
liveInfo | Required | Live info. | |
completion | LiveInfoCompletionClosure? | Required | Completion callback. |
public func joinLive(liveID: String,completion: LiveInfoCompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
liveID | String | Required | Live ID. |
completion | LiveInfoCompletionClosure? | Required | Completion callback. |
public func leaveLive(completion: CompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
completion | Required | Completion callback. |
public func endLive(completion: StopLiveCompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
completion | StopLiveCompletionClosure? | Required | Completion callback. |
public func updateLiveInfo(_ liveInfo: LiveInfo,modifyFlag: LiveInfo.ModifyFlag,completion: CompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
liveInfo | Required | Live info. | |
modifyFlag | LiveInfo.ModifyFlag | Required | Modify flag. |
completion | Required | Completion callback. |
public func queryMetaData(keys: [String], completion: MetaDataCompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
keys | [String] | Required | Key list. |
completion | MetaDataCompletionClosure? | Required | Completion callback. |
public func updateLiveMetaData(_ metaData: [String: String],completion: CompletionClosure?) {fatalError("\\(#function) must be overridden by subclass")}
Parameter | Type | Required | Description |
metaData | [String: String] | Required | Metadata. |
completion | 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. |
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 |
endedByHost | Ended by host. |
endedByServer | Ended by server. |
Enum Value | Description |
byAdmin | Kicked out by admin. |
byLoggedOnOtherDevice | Logged on other device. |
byServer | Kicked out by server. |
forNetworkDisconnected | Network disconnected. |
forJoinRoomStatusInvalidDuringOffline | Join room status invalid during offline. |
forCountOfJoinedRoomsExceedLimit | Count of joined rooms exceed limit. |
Property | Type | Description |
liveID | String | Live ID. |
liveName | String | Live name. |
notice | String | Live notice. |
isMessageDisable | Bool | Whether message is disabled. |
isPublicVisible | Bool | Whether publicly visible. |
isSeatEnabled | Bool | Whether seat is enabled. |
keepOwnerOnSeat | Bool | Whether to keep owner on seat. |
maxSeatCount | Int | Maximum seat count. |
seatMode | Take seat mode. | |
seatTemplate | Seat layout template for simplifying seat configuration. | |
seatLayoutTemplateID | UInt | Seat layout template ID. |
coverURL | String | Cover URL. |
backgroundURL | String | Background URL. |
categoryList | [NSNumber] | Category list. |
activityStatus | Int | Activity status. |
liveOwner | Live owner info. | |
createTime | Int | Create time. |
totalViewerCount | Int | Total viewer count. |
isGiftEnabled | Bool | Whether gift is enabled. |
metaData | [String: String] | Metadata. |
case onLiveEnded(liveID: String, reason: LiveEndedReason, message: String)
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Ended reason. | |
message | String | Message. |
case onKickedOutOfLive(liveID: String, reason: LiveKickedOutReason, message: String)
Parameter | Type | Description |
liveID | String | Live ID. |
reason | Kicked out reason. | |
message | String | Message. |
Feedback