Methods
Lobby

Lobby

The lobby is where users can toggle with audio/video controls before joining a room.

NameTypeDescription
joinLobby(roomId: string, accessToken: string)Functionmoves the user to a pre-room lobby where they can toggle with audio/video controls before joining a room
leaveLobby()Functionremoves the user from the lobby back to the initialized state

Example

meeting_screen.dart
import 'package:flutter/material.dart';
import 'package:huddle01_flutter_client/huddle_client.dart';
 
 
class MeetingScreen extends StatefulWidget {
  ...
}
 
class _MeetingScreenState extends State<MeetingScreen> {
  late HuddleClient huddleClient;
 
  @override
  void initState() {
    ...
  }
 
  @override
  Widget build(BuildContext context) {
    return Column(
      children:[
        ElevatedButton(
          onPressed:(){
            huddleClient.joinLobby(roomId);
          },
          child: const Text("Join Lobby"),
        ),
        ElevatedButton(
          onPressed:(){
            huddleClient.leaveLobby();
          },
          child: const Text("Leave Lobby"),
        ),
      ]
    );
  }
}
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2024 Graphene 01, Inc. All Rights Reserved.