• 製品
  • 価格
  • リソース
  • サポート
このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

LiveCoreView

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
PLAY_VIEW
Play view.
PUSH_VIEW
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.
fun createCoGuestView(seatInfo: SeatInfo?, viewLayer: ViewLayer?): View?
Parameter
Type
Description
seatInfo
Co-guest user seat information.
viewLayer
View layer, foreground or background.
createCoHostView: Create cross-room co-host view.
fun createCoHostView(seatInfo: SeatInfo?, viewLayer: ViewLayer?): View?
Parameter
Type
Description
seatInfo
Cross-room co-host user seat information.
viewLayer
View layer, foreground or background.
createBattleView: Create PK view.
fun createBattleView(seatInfo: SeatInfo?): View?
Parameter
Type
Description
seatInfo
PK user seat information.
createBattleContainerView: Create PK container view.
fun createBattleContainerView(): View?