AtomicLiveView is a lightweight alternative to LiveCoreView, designed for pure playback scenarios. It is a standalone view container that manages its own render surfaces and lifecycle, and does not depend on LiveCoreView. Suitable for scenarios that only require video rendering and do not need seat / co-hosting / PK capabilities.LiveCoreView.AtomicPlayer constructor to complete the video output pipeline.Enum Value | Description |
PLAY_VIEW | Play view, used with AtomicPlayer. |
PUSH_VIEW | Push view, used with AtomicPusher. |
Property | Type | Description |
index | Int | Unit index. |
liveID | String | Live ID. |
userID | String | User ID. |
userName | String | User name. |
avatarURL | String | Avatar URL. |
microphoneStatus | Microphone status. | |
cameraStatus | Camera status. | |
userSuspendStatus | User suspend status. |
fun onCreateUnitView(unitInfo: UnitInfo?,): View?
Parameter | Type | Description |
unitInfo | Live unit info. |
fun onUpdateUnitView(unitInfo: UnitInfo?,view: View?,)
Parameter | Type | Description |
unitInfo | Latest live unit info. | |
view | View? | The current widget view of this seat, or null if the seat has no widget yet. |
fun onVideoViewFrameChanged(left: Float,top: Float,right: Float,bottom: Float,)
Parameter | Type | Description |
left | Float | Ratio of the top-left point from the left edge. |
top | Float | Ratio of the top-left point from the top edge. |
right | Float | Ratio of the bottom-right point from the left edge. |
bottom | Float | Ratio of the bottom-right point from the top edge. |
fun onVolumeChanged(unitInfo: UnitInfo?,volume: Int,view: View?,)
Parameter | Type | Description |
unitInfo | Live unit info of the seat whose volume changed. | |
volume | Int | Latest speaking volume of this seat user, in the range 0 to 100. |
view | View? | The current widget view of this seat, or null if the seat has no widget yet. |
フィードバック