RoomParticipantView is a view component specifically designed for rendering room participant video streams. It supports both camera and screen sharing video stream types, and provides fill mode settings, active state control and other features.Function | Description |
Create view instance. | |
Update video stream type. | |
Update participant info. | |
Set fill mode. | |
Set active state. | |
Set click callback. |
void updateStreamType(VideoStreamType streamType);
Parameter | Type | Description |
streamType | Video stream type. |
void updateParticipant(RoomParticipant participant);
Parameter | Type | Description |
participant | RoomParticipant | Participant info. |
void setFillMode(FillMode fillMode);
Parameter | Type | Description |
fillMode | Fill mode. |
void setActive(bool isActive);
Parameter | Type | Description |
isActive | bool | Whether active. |
void setOnClickAction(VoidCallback action);
Parameter | Type | Description |
action | VoidCallback | Click callback closure. |
Enum Value | Value | Description |
camera | 0 | Camera video stream. |
screen | 1 | Screen sharing video stream. |
Enum Value | Value | Description |
fill | 0 | Fill mode, video fills the entire view area, may crop some content. |
fit | 1 | Fit mode, video displays completely, may have black borders. |
피드백