Skip to main content

Quickstart

Start with one secure room that you can explain, reproduce, and test. The ReactJS reference path uses mediasfu-reactjs@4.3.7; it covers secure create, join, participants, microphone and camera state, remote media, screen sharing, participant leave, and host end.

The shortest trustworthy path​

  1. Mount the React prebuilt room and prove a local development create/join flow.
  2. Before sharing or releasing the build, put reusable room credentials behind your authenticated backend.
  3. Prove create and join with two real participants.
  4. Prove local production and remote consumption separately.
  5. Prove screen-share start and stop.
  6. Prove participant leave and host end, including cleanup.

Build the React room step by step

Follow the complete React example, then test it with two users in a live room before release.

Security boundary​

Your application backend owns authentication, room policy, host authority, rate limits, and MediaSFU credentials. The SDK owns the room and media runtime. Your client receives only the minimum short-lived result needed to enter the authorized room.

Use the production credential boundary before shipping. A restricted, revocable credential can speed up isolated local development, but it must not be committed or distributed in a client build.

Choose another SDK deliberately​

React is the first reference implementation, not proof that every SDK exposes the same operations.

TargetWhat this documentation currently coversContinue
ReactJS 4.3.7Complete room lifecycle guide; run the live two-user test before releaseReact room operations
Angular 2.4.1Angular-owned room lifecycle and media guideAngular room lifecycle
React Native 2.4.5Native room lifecycle; validate media and permissions on a physical deviceReact Native room operations
React Native Expo 2.5.5Expo room operations in a development buildExpo room operations
Vue 1.2.1Vue-owned room lifecycle and media guideVue room operations
Android 1.0.7Android-specific artifact and Compose room guide; validate permissions and media on physical devicesAndroid SDK
Kotlin Multiplatform 1.0.7Shared Android and iOS-target package guide available; validate each shipping targetKotlin SDK
Unity 0.1.0-preview.2Room operations guide for join, participants, media, screen sharing, leave, and host end; secure distributed-game create needs a backend-authorized package contractUnity room operations
mediasfu-shared 1.2.5Framework-neutral runtime primitives; this is not a prebuilt room UIShared core
Flutter 2.3.6Package guide available; put room create and join behind your authenticated backend, then validate each target platformFlutter SDK
Swift / Apple 0.1.3 + room framework 1.0.3Native Apple room setup, hosted controller, media controls, and release checklistSwift SDK

What to build next​

For a runnable product journey, open Starter Projects. The Interactive Classroom, Familiar Calls, Live Auction, and Watch Together repositories show distinct application compositions. Check each project's platform-specific guidance rather than assuming identical behavior across its ports. For encoder ingest, external playback, and large-audience output, follow the separate WHIP, WHEP, and HLS guide.

Each room-operation guide is written for its named package. Use its code only with that package and version.