Broadcaster Streaming Page

Feature Overview

The Live Stream Publishing Page enables features like audience mic connection, anchor connection, cross-room PK, live room information, audience list, gift display, and bullet screen after the anchor starts streaming. This document describes how to complete the access work within 10 minutes.
Live stream in progress
Anchor in co-anchoring




Feature Integration

Note:
Before completing the feature integration, you must finish the integration steps in the overview.

Creating Live Stream Publishing Page View and Initializing

Swift
var liveInfo = LiveInfo()
liveInfo.roomId = roomId
liveInfo.name = state.roomName
liveInfo.coverUrl = state.coverUrl
liveInfo.isPublicVisible = state.privacyMode == .public

let anchorView = AnchorView(liveInfo: liveInfo, coreView: self.coreView, behavior: .createRoom)
anchorView.delegate = self

Load the Live Stream Publishing Page Into ViewController

Swift
public override func loadView() {
view = rootView
}

Listening for the Go Live Button Click Event

Swift
extension TUILiveRoomAnchorViewController: AnchorViewDelegate {
public func onClickFloatWindow() {
}
public func onEndLiving(state: AnchorState) {

}
}

Feature Customization

Hide the Operation Section at the Top of the Host Page

Swift
anchorView.disableHeaderLiveData(true)

Hide the Audience List Feature in the Top Operation Section

Swift
anchorView.disableHeaderVisitorCnt(true)

Hide the Co-Anchoring Function in the Bottom Operation Section

Swift
anchorView.disableFooterCoGuest(true)

Hide the Connection Feature in the Bottom Operation Section

Swift
anchorView.disableFooterCoHost(true)

Hide the PK Feature in the Bottom Operation Section

Swift
anchorView.disableFooterBattle(true)

Hide the Sound Effect Feature in More Settings Panel

Swift
anchorView.disableFooterSoundEffect(true)