Configuration options for the VideoCard component
Optional
deprecatedLegacyContext: anyRendered video card with stream, controls, and waveform
Optional
propUsed to declare the types of the props accepted by the component. These types will be checked during rendering and in development only.
We recommend using TypeScript instead of checking prop types at runtime.
Optional
contextOptional
defaultUsed to define default values for the props accepted by the component.
Optional
displayUsed in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
VideoCard - Displays a participant's video stream with controls, info overlay, and audio waveform
VideoCard is a comprehensive React Native component that renders a participant's video feed with real-time audio visualization (animated waveform), optional media controls, and participant information overlay. It supports multiple display modes, custom styling, and flexible positioning.
Key Features:
UI Customization - Two-Tier Override System:
Custom Render Function (via
customVideoCard
prop): Pass a function that receives all VideoCardOptions and returns custom JSX. Provides complete control over rendering logic and appearance.Component Override (via
uiOverrides.videoCardComponent
): Replace the entire VideoCard component while preserving MediaSFU's orchestration. Useful when you want a different component implementation.Advanced Render Overrides:
renderContent
: Wrap/modify the card's inner content while keeping containerrenderContainer
: Wrap/modify the entire card containerComponent
Example
Example
Example
Example