Live Streaming | Interactive co-guest | Live Information | Live Interactive |
![]() |
![]() | ![]() | ![]() |
YourAudienceViewController, initialize and add AudienceContainerView for audience streaming://YourAudienceViewControllerrepresents the view controller for your audience viewing pageclassYourAudienceViewController: UIViewController {// 1. Declare audienceView as a member variableprivate let audienceView:AudienceContainerView// 2. Add a convenient constructor:// - roomId: The id of the live streaming roompublic init(roomId: String) {// 3.Initialize the AudienceContainerView componentself.audienceView = AudienceContainerView(roomId: roomId)super.init(nibName: nil, bundle: nil)}public override func viewDidLoad() {super.viewDidLoad()// 4. Add audienceView to viewview.addSubview(audienceView)audienceView.snp.makeConstraints { make inmake.edges.equalToSuperview()}}}
// 1. Instantiate your audience viewing view controllerlet audienceVC =YourAudienceViewController(roomId: "Your live streaming room id")audienceVC.modalPresentationStyle = .fullScreen// 2. Navigate to your audience viewing view controllerpresent(audienceVC, animated: false)
AudienceContainerView Feature AreaaudienceView, you can customize and disable (hide) the operation area or specific features on the viewer watching page://YourAudienceViewControllerrepresents the view controller for your audience viewing pageclassYourAudienceViewController: UIViewController {private let audienceView:AudienceContainerViewpublic init(roomId: String) {self.audienceView = AudienceContainerView(roomId: roomId)super.init(nibName: nil, bundle: nil)}public override func viewDidLoad() {super.viewDidLoad()// 1. Add audienceView to viewview.addSubview(audienceView)audienceView.snp.makeConstraints { make inmake.edges.equalToSuperview()}// 2. Custom function area example - Forbid swiping to switch live roomsaudienceView.disableSliding(true)}}
API | Description |
disableHeaderLiveData(true) | Hide Top Operation Section Live Information |
disableHeaderFloatWin(true) | Hide Top Operation Section Floating Window Feature |
disableHeaderVisitorCnt(true) | Hide Top Operation Section Audience List Function |
disableFooterCoGuest(true) | Hide Bottom Operation Section Co-Anchoring Function |
disableSliding(true) | Forbid Swiping to Switch Live Rooms |
.xcstrings) format, introduced in Xcode 15, to manage the text displayed in the UI. You can modify the string resources using Xcode's graphical interface:
TUILiveKit.xcassets to manage the image resources for the UI. You can quickly modify the custom icons using Xcode's graphical tools.
Feature | Description | Integration Guide |
Host Streaming | The complete workflow for a host to start a stream, including pre-stream setup and various in-stream interactions. | |
Live Stream List | Display the live stream list interface and features, including the live stream list and room information display. |

Feedback