MediaSFU React Native
    Preparing search index...

    Variable MediasfuWebinarConst

    MediasfuWebinar: React.FC<MediasfuWebinarOptions> = ...

    MediasfuWebinar component provides a presenter-focused layout optimized for webinars and large audience events with a prominent host/presenter view and compact participant sidebar.

    • Presenter Focus: Large main stage (67% screen) dedicated to host/presenter
    • Audience Sidebar: Compact participant grid for attendees
    • Interactive Q&A: Polls, chat, hand-raising, requests to speak
    • Screen Sharing: Present slides or applications to audience
    • Recording: Capture webinar with host-focused layout
    • Waiting Room: Control participant admission
    • Customizable Branding: Custom cards and UI components
    • Main stage: 67% of screen width for host/presenter
    • Sidebar: 33% for participant thumbnails
    • Screen share replaces main stage when active
    • Host video prioritized in main view

    Automatically sets eventType: 'webinar' for presenter-focused mode.

    Component properties

    MediaSFU Webinar component

    // Basic webinar with MediaSFU Cloud
    import { MediasfuWebinar } from 'mediasfu-reactnative';

    function App() {
    return (
    <MediasfuWebinar
    credentials={{
    apiUserName: 'your-api-username',
    apiKey: 'your-api-key'
    }}
    />
    );
    }
    // Webinar with custom branding and prejoin
    import { MediasfuWebinar } from 'mediasfu-reactnative';
    import { BrandedPrejoin } from './BrandedPrejoin';

    function App() {
    return (
    <MediasfuWebinar
    PrejoinPage={BrandedPrejoin}
    credentials={{
    apiUserName: 'your-api-username',
    apiKey: 'your-api-key'
    }}
    imgSrc="https://example.com/webinar-logo.png"
    containerStyle={{
    backgroundColor: '#0a0a0a'
    }}
    />
    );
    }
    // Webinar with custom presenter card and controls
    import { MediasfuWebinar } from 'mediasfu-reactnative';
    import { PresenterVideoCard } from './PresenterVideoCard';
    import { WebinarControls } from './WebinarControls';

    function App() {
    return (
    <MediasfuWebinar
    credentials={{
    apiUserName: 'your-api-username',
    apiKey: 'your-api-key'
    }}
    customVideoCard={(props) => (
    <PresenterVideoCard {...props} showNameTag showQualityBadge />
    )}
    uiOverrides={{
    controlButtons: WebinarControls,
    mainScreen: CustomMainScreen
    }}
    />
    );
    }