Skip to main content

Flutter Classroom Workshop Tutorial

Build a teacher-and-learner room with mediasfu_sdk@2.3.0. The supplied conference room provides people controls, media, chat, polls, breakout rooms, whiteboard, screen sharing, recording controls, and exit.

Prerequisites

  • Flutter 3.38.1 or newer and an Android or iOS development environment.
  • An HTTPS signed-in backend that owns teacher, learner, breakout, and recording permissions.

Project files

Use the complete Flutter starter app. It contains every file needed for this package. On its first screen, choose Classroom workshop to open the supplied conference room through the secured backend adapter.

flutter create my_mediasfu_app
cd my_mediasfu_app

The local token field is for isolated development only. Release builds obtain room authority from the signed-in backend and keep MediaSFU credentials there.

Run

cd my_mediasfu_app
flutter pub get
flutter run

Expected result

Choose Classroom workshop and join as teacher and learner. Test the controls allowed by the current role, including a poll, whiteboard, or breakout flow.

Recovery

  • Keep a learner in the main room if a breakout move fails.
  • Restore teacher controls only after current authority is confirmed.
  • Preserve or discard board work according to product policy after reconnect.

Cleanup

Use host end to finish the class. Clear attendance state, drafts, exports, timers, and subscriptions after exit.