• 서비스
  • 가격
  • 리소스
  • 기술지원
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

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)