applooma_uikit

Drop-in live streaming, voice room and 1-to-1 call screens for Flutter, built on applooma_rtc.

dependencies:
  applooma_uikit: ^0.1.2
import 'package:applooma_uikit/applooma_uikit.dart';

final kit = AppLoomaKit(
  appId: 'YOUR_APP_ID',
  user: AppLoomaKitUser(id: me.id, name: me.name),
  // YOUR server returns { token, wsUrl } — the API secret never ships in the app.
  tokenProvider: (room, role, user) async {
    final r = await myApi.rtcToken(room: room, role: role, identity: user.id, name: user.name);
    return AppLoomaToken(token: r.token, wsUrl: r.wsUrl);
  },
);

Navigator.push(context, MaterialPageRoute(builder: (_) => AppLoomaLiveStream(kit: kit, room: 'show-42', role: 'host')));
Navigator.push(context, MaterialPageRoute(builder: (_) => AppLoomaVoiceRoom(kit: kit, room: 'party-7')));
Navigator.push(context, MaterialPageRoute(builder: (_) => AppLoomaCall(kit: kit, room: 'call-abc', video: true)));

Add CAMERA / RECORD_AUDIO to the Android manifest and the camera and microphone usage strings to iOS Info.plist. The screens ask for permission when they join.

On Android 12 and above also declare BLUETOOTH_CONNECT so Bluetooth headsets work in the screens. Needs applooma_rtc 0.3.3 or newer, which the kit pulls in.

MIT © AppLooma LLC

Libraries

applooma_uikit
AppLooma RTC UIKit — drop-in live streaming, voice room and 1-to-1 call screens.