Skip to content

RtkVideoPeer

Last updated View as MarkdownAgent setup

A view that renders a participant's video stream with an avatar fallback when video is disabled.

Methods

Method Parameters Description
refresh participant: RtkMeetingParticipant, isScreenShare: Boolean Update the view with the participant data

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.RtkVideoPeer
    android:id="@+id/rtk_video_peer"
    android:layout_width="match_parent"
    android:layout_height="200dp" />

With Methods

val videoPeer = findViewById<RtkVideoPeer>(R.id.rtk_video_peer)
videoPeer.refresh(participant, isScreenShare = false)

Was this helpful?