tencent cloud

LiveCoreView
Last updated:2026-03-05 17:06:13
LiveCoreView
Last updated: 2026-03-05 17:06:13

Introduction

LiveCoreView provides view container for live streaming push and playback, supporting multi-person co-guest, PK and other features.
Through this component, video rendering and interaction in live rooms can be implemented.
Important:
Before using, you need to call setLiveID(_:) to set the live room ID first.

Features

Video Rendering:Provides view container for live streaming push and playback
Co-guest Support:Supports multi-person co-guest feature
PK Support:Supports anchor PK feature
Preview Outside Room:Supports previewing live stream before entering the room

Data Structures

CoreViewType

Core view type.
Enum Value
Description
playView
Play view.
pushView
Push view.

ViewLayer

View layer.
Enum Value
Description
foreground
Foreground layer.
background
Background layer.

VideoViewAdapter

Video view adapter protocol
Methods
createCoGuestView: Create co-guest view.
func createCoGuestView(seatInfo: SeatInfo, viewLayer: ViewLayer) -> UIView?
Parameter
Type
Description
seatInfo
Co-guest user seat information.
viewLayer
View layer, foreground or background.
createCoHostView: Create cross-room co-host view.
func createCoHostView(seatInfo: SeatInfo, viewLayer: ViewLayer) -> UIView?
Parameter
Type
Description
seatInfo
Cross-room co-host user seat information.
viewLayer
View layer, foreground or background.
createBattleView: Create PK view.
func createBattleView(seatInfo: SeatInfo) -> UIView?
Parameter
Type
Description
seatInfo
PK user seat information.
createBattleContainerView: Create PK container view.
func createBattleContainerView() -> UIView?

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback