Skip to main content

Flutter Live Guest Queue Tutorial

Build an audience room with mediasfu_sdk@2.4.1. The supplied webinar room provides waiting, requests, presenter media, audience rendering, chat, polls, screen sharing, and exit.

Prerequisites​

  • Flutter 3.38.1 or newer and an Android or iOS development environment.
  • An HTTPS signed-in backend that owns guest admission and presenter authority.

Project files​

Use the complete Flutter starter app. It contains every file needed for this package. On its first screen, choose Live guest queue; the supplied webinar room opens without a MediaSFU credential in the client.

flutter create my_mediasfu_app
cd my_mediasfu_app

Use a revocable app-session token only for the isolated local check. Release builds use a signed-in session and backend-held MediaSFU credentials.

Run​

cd my_mediasfu_app
flutter pub get
flutter run

Expected result​

Open Live guest queue as host and audience member. A guest request appears through the webinar room, and confirmed room state determines whether someone is on stage.

Recovery​

  • Preserve pending requests through reconnect.
  • Keep a denied requester in the audience rather than assigning a role locally.
  • Handle capture permission without disabling chat or room navigation.

Cleanup​

Clear pending requests, cached people, timers, and subscriptions on exit. The backend owns admission history and authority retention.