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. |
public func updateStreamType(streamType: VideoStreamType) {updateStreamTypeInternal(streamType: streamType)}
Parameter | Type | Description |
streamType | Video stream type. |
public func updateParticipant(participant: RoomParticipant) {updateParticipantInternal(participant: participant)}
Parameter | Type | Description |
participant | RoomParticipant | Participant info. |
public func setFillMode(fillMode: FillMode) {setFillModeInternal(fillMode: fillMode)}
Parameter | Type | Description |
fillMode | Fill mode. |
public func setActive(isActive: Bool) {setActiveInternal(isActive: isActive)}
Parameter | Type | Description |
isActive | Bool | Whether active. |
public func setOnClickAction(action: @escaping () -> Void) {setOnClickActionInternal(action: action)}
Parameter | Type | Description |
action | () -> Void | 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. |
피드백