Renders a participant's video stream. Supports self-preview, remote participant video, and screen share rendering.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
participant |
RtkMeetingParticipant |
✅ | - | The participant whose video to render |
showSelfPreview |
Bool |
❌ | false |
Whether to show the local camera preview |
showScreenShare |
Bool |
❌ | false |
Whether to show the screen share stream instead of camera |
| Method | Return Type | Description |
|---|---|---|
reattachRenderer() |
Void |
Reattaches the video renderer to the participant stream |
prepareForReuse() |
Void |
Prepares the view for reuse in a collection or table view |
clean() |
Void |
Releases the video renderer and cleans up resources |
import RealtimeKitUI
let videoView = RtkVideoView(participant: participant)
view.addSubview(videoView)import RealtimeKitUI
let previewView = RtkVideoView(
participant: localParticipant,
showSelfPreview: true
)
view.addSubview(previewView)import RealtimeKitUI
let screenShareView = RtkVideoView(
participant: participant,
showScreenShare: true
)
view.addSubview(screenShareView)