LiveCoreView

class LiveCoreView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, viewType: CoreViewType = CoreViewType.PLAY_VIEW) : LiveCoreViewDeprecated

Live core view component, providing view container for live streaming push and playback, supporting multi-person co-guest, PK and other features.

Overview

LiveCoreView Live core view component, providing view container for live streaming push and playback. 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.

Key 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

Important: Before using, you need to call setLiveID to set the live room ID first.

Topics

See Also

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0, viewType: CoreViewType = CoreViewType.PLAY_VIEW)

Functions

Link copied to clipboard
fun setLiveId(liveId: String)

Set live ID

Link copied to clipboard

Set widget view adapter

Link copied to clipboard
fun startPreviewLiveStream(roomId: String, isMuteAudio: Boolean, callback: TUIRoomDefine.PlayCallback?)

Preview outside room

Link copied to clipboard

Stop preview outside room