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.Enum Value | Description |
playView | Play view. |
pushView | Push view. |
Enum Value | Description |
foreground | Foreground layer. |
background | Background layer. |
static LiveCoreController create(CoreViewType type) {return LiveCoreControllerImpl(type);}
Parameter | Type | Description |
type | Core view type. |
void setLiveID(String liveID);
Parameter | Type | Description |
liveID | String | Live ID. |
void startPreviewLiveStream(String roomID, bool isMuteAudio, TUIPlayCallback? playCallback);
Parameter | Type | Description |
roomID | String | Live ID. |
isMuteAudio | bool | Whether to mute audio. |
playCallback | TUIPlayCallback? | Play callback. |
void stopPreviewLiveStream(String roomID);
Parameter | Type | Description |
roomID | String | Live ID. |
static void callExperimentalAPI(String jsonStr) {LiveCoreControllerImpl.callExperimentalAPI(jsonStr);}
CoGuestWidgetBuilder coGuestWidgetBuilder = (BuildContext context, SeatInfo seatInfo, ViewLayer viewPlayer) {return Container();};
Parameter | Type | Description |
seatInfo | SeatInfo | Co-guest user seat information. |
viewLayer | View layer, foreground or background. |
CoHostWidgetBuilder coHostWidgetBuilder = (BuildContext context, SeatInfo seatInfo, ViewLayer viewPlayer) {return Container();};
Parameter | Type | Description |
seatInfo | SeatInfo | Cross-room co-host user seat information. |
viewLayer | View layer, foreground or background. |
BattleWidgetBuilder battleWidgetBuilder = (BuildContext context, SeatInfo seatInfo) {return Container();};
Parameter | Type | Description |
seatInfo | SeatInfo | PK user seat information. |
BattleContainerWidgetBuilder battleContainerWidgetBuilder = (BuildContext context) {return Container();};VideoWidgetBuilder({CoGuestWidgetBuilder? coGuestWidgetBuilder,CoHostWidgetBuilder? coHostWidgetBuilder,BattleWidgetBuilder? battleWidgetBuilder,BattleContainerWidgetBuilder? battleContainerWidgetBuilder,}) {if (coGuestWidgetBuilder != null) this.coGuestWidgetBuilder = coGuestWidgetBuilder;if (coHostWidgetBuilder != null) this.coHostWidgetBuilder = coHostWidgetBuilder;if (battleWidgetBuilder != null) this.battleWidgetBuilder = battleWidgetBuilder;if (battleContainerWidgetBuilder != null) this.battleContainerWidgetBuilder = battleContainerWidgetBuilder;}
フィードバック