Configuration options for the AudioCard component
Optional
deprecatedLegacyContext: anyRendered audio card with waveform, avatar, and controls
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.
AudioCard - Displays a participant in audio-only mode with waveform and controls
AudioCard is a specialized React Native component for displaying participants in audio-only scenarios. It renders an avatar/image with an animated audio waveform, participant info overlay, and optional media control buttons. The component is ideal for audio-focused events, participants with video off, or compact grid layouts.
Key Features:
UI Customization - Two-Tier Override System:
Custom Render Function (via
customAudioCard
prop): Pass a function that receives all AudioCardOptions and returns custom JSX. Provides complete control over rendering logic and appearance.Component Override (via
uiOverrides.audioCardComponent
): Replace the entire AudioCard 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
Example