Hiyve Components - v1.0.0
    Preparing search index...

    Interface Participant

    Participant information with media streams.

    Represents a remote participant in a video conference room. Each participant has separate audio and video streams that can be rendered using RTCView from react-native-webrtc. The audioOnly flag indicates if the participant joined without video capability.

    Rendering a participant's video in React Native:

    import { RTCView } from 'react-native-webrtc';

    function ParticipantVideo({ participant }: { participant: Participant }) {
    if (!participant.videoStream || participant.isVideoMuted) {
    return <AvatarPlaceholder name={participant.userName} />;
    }

    return (
    <RTCView
    streamURL={participant.videoStream.toURL()}
    style={{ flex: 1 }}
    objectFit="cover"
    />
    );
    }

    ParticipantsState for accessing all participants

    interface Participant {
        audioOnly: boolean;
        audioStream: MediaStream | null;
        externalUserId?: string;
        isAudioMuted: boolean;
        isOutputMuted?: boolean;
        isVideoMuted: boolean;
        userId: string;
        userName?: string;
        videoStream: MediaStream | null;
    }
    Index

    Properties

    audioOnly: boolean

    Whether participant joined in audio-only mode (no camera)

    audioStream: MediaStream | null

    Audio MediaStream from react-native-webrtc, null if no audio or audio stopped

    externalUserId?: string

    External user ID (e.g., from your auth system)

    isAudioMuted: boolean

    Whether participant's microphone is muted

    isOutputMuted?: boolean

    Whether this participant's audio output is muted locally (you cannot hear them)

    isVideoMuted: boolean

    Whether participant's camera is muted/off

    userId: string

    Unique identifier for the participant (internal ID)

    userName?: string

    Display name for the participant

    videoStream: MediaStream | null

    Video MediaStream from react-native-webrtc, null if no video or video stopped