Live Streaming | Interactive co-guest | Live Information | Live Interactive |
![]() |
![]() | ![]() | ![]() |
TUILiveKit trial version or activate the paid version.YourAudienceViewController, initialize and add AudienceView for audience streaming:import UIKitimport SnapKitimport TUILiveKit// YourAudienceViewController represents the view controller for your audience viewing pageclass YourAudienceViewController: UIViewController {// 1. Declare audienceView as a member variableprivate let audienceView: AudienceView// 2. Add a convenient constructor:// - roomId: The id of the live streaming roompublic init(roomId: String) {// 3. Initialize the AudienceView componentself.audienceView = AudienceView(roomId: roomId)super.init(nibName: nil, bundle: nil)}@available(*, unavailable)required init?(coder: NSCoder) {fatalError("init(coder:) has not been implemented")}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)
AudienceView Feature Area.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. | |
Gift System | Support custom gift asset configuration, billing system integration, and gift-sending in PK scenarios. |

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan