Renders a participant's video stream.
Supports self-preview, remote participant video, and screen share rendering.
Parameter Type Required Default Description participantRtkMeetingParticipant✅ - The participant whose video to render showSelfPreviewBool❌ falseWhether to show the local camera preview showScreenShareBool❌ falseWhether to show the screen share stream instead of camera
Method Return Type Description reattachRenderer()VoidReattaches the video renderer to the participant stream prepareForReuse()VoidPrepares the view for reuse in a collection or table view clean()VoidReleases the video renderer and cleans up resources
let videoView = RtkVideoView ( participant : participant )
view. addSubview ( videoView )
let previewView = RtkVideoView (
participant : localParticipant,
view. addSubview ( previewView )
let screenShareView = RtkVideoView (
participant : participant,
view. addSubview ( screenShareView )