import { VideoTile } from '@hiyve/rn-react';
import { useLocalMedia, useParticipants } from '@hiyve/rn-react';
function MyVideoTile() {
const { localStream, isAudioMuted, isVideoMuted } = useLocalMedia();
return (
<VideoTile
stream={localStream}
userId="user-123"
displayName="Jane Doe"
isAudioMuted={isAudioMuted}
isVideoMuted={isVideoMuted}
isLocal
mirror
colors={{ border: '#6366f1' }}
/>
);
}
Displays a single participant's video stream or an avatar placeholder.
VideoTilerenders anRTCViewwhen a video stream is available, or falls back to a colored avatar circle with the participant's initials. A name label is always shown at the bottom, and a mute badge appears when the participant's audio is muted.Colors and labels can be partially overridden -- any keys you do not provide fall back to the built-in defaults.