AtomicLiveWidget is a lightweight render container for pure playback / preview scenarios. It only renders video (mix-stream or per-seat) plus business widgets, and does not provide seat / co-hosting / PK APIs. Pass AtomicLiveWidget to AtomicPlayer.setView / AtomicPusher.setView to complete the video output pipeline; the live ID is bound by the player / pusher, so business code never needs to set it.Enum Value | Description |
playView | Play view, used with AtomicPlayer. |
pushView | 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. |
Widget? onCreateUnitView(UnitInfo unitInfo);
Parameter | Type | Description |
unitInfo | Live unit info. |
void onUpdateUnitView(UnitInfo unitInfo, Key? view);
Parameter | Type | Description |
unitInfo | Latest live unit info. | |
view | Key? | The current widget view of this seat, or nil if the seat has no widget yet. |
void onVideoViewFrameChanged(double left, double top, double right, double bottom);
Parameter | Type | Description |
left | double | Ratio of the top-left point from the left edge. |
top | double | Ratio of the top-left point from the top edge. |
right | double | Ratio of the bottom-right point from the left edge. |
bottom | double | Ratio of the bottom-right point from the top edge. |
void onVolumeChanged(UnitInfo unitInfo, int volume, Key? 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 | Key? | Key identifying the current widget of this seat, or null if the seat has no widget yet. |
static AtomicLiveController create(AtomicLiveViewType viewType) {return AtomicLiveControllerImpl(viewType);}
Parameter | Type | Description |
viewType | Atomic live view type, play or push. |
void setViewChangeAdapter(AtomicLiveViewChangeAdapter adapter);
Parameter | Type | Description |
adapter | View adapter. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários