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 listener. |
fun updateStreamType(streamType: VideoStreamType) {updateStreamTypeInternal(streamType)}
Parameter | Type | Description |
streamType | Video stream type. |
fun updateParticipant(participant: RoomParticipant) {updateParticipantInternal(participant)}
Parameter | Type | Description |
participant | RoomParticipant | Participant info. |
fun setFillMode(fillMode: FillMode) {setFillModeInternal(fillMode)}
Parameter | Type | Description |
fillMode | Fill mode. |
fun setActive(isActive: Boolean) {setActiveInternal(isActive)}
Parameter | Type | Description |
isActive | Boolean | Whether active. |
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. |
フィードバック