Const
// Basic conference with MediaSFU Cloud
import { MediasfuConference } from 'mediasfu-reactnative';
function App() {
return (
<MediasfuConference
credentials={{
apiUserName: 'your-api-username',
apiKey: 'your-api-key'
}}
/>
);
}
// Conference with custom prejoin and waiting room
import { MediasfuConference } from 'mediasfu-reactnative';
import { CustomPrejoin } from './CustomPrejoin';
function App() {
return (
<MediasfuConference
PrejoinPage={CustomPrejoin}
credentials={{
apiUserName: 'your-api-username',
apiKey: 'your-api-key'
}}
imgSrc="https://example.com/brand-logo.png"
/>
);
}
// Conference with custom video cards and UI overrides
import { MediasfuConference } from 'mediasfu-reactnative';
import { BrandedVideoCard } from './BrandedVideoCard';
import { CustomControlButtons } from './CustomControls';
function App() {
return (
<MediasfuConference
credentials={{
apiUserName: 'your-api-username',
apiKey: 'your-api-key'
}}
customVideoCard={(props) => (
<BrandedVideoCard {...props} showQualityIndicator />
)}
uiOverrides={{
controlButtons: CustomControlButtons,
mainGrid: CustomMainGrid
}}
containerStyle={{
backgroundColor: '#1e1e1e'
}}
/>
);
}
MediasfuConference component provides a full-featured video conferencing solution optimized for collaborative meetings with equal-sized participant tiles and interactive features.
Key Features
Layout Characteristics
Event Type
Automatically sets
eventType: 'conference'
for balanced collaboration mode.