Client
Using the Huddle 01 Flutter plugin you can build and get started with a simple p2p video chat application in minutes! Follow along this guide to know how:
Getting started
1. Installation
$ flutter pub add huddle01_flutter_sdkOR
add this in your project's pubspec.yaml
dependencies:
flutter:
sdk: flutter
huddle01_flutter_sdk: ^0.1.0and then run
$ flutter pub get2. Get your API Key
You can get your access keys in the Developer section of the Huddle01 Dashboard.
3. Importing into your application
import 'package:huddle01_flutter/huddle01_flutter.dart';In this documentation we use flutter_bloc package for state management.
4. Setup event listeners
Here we setup event emitters that are triggered at certain specific events from the package. These help with the global state management of the application.
5. Initialising Client repository and using available methods:
Client repository initialisation using RepositoryProvider and using join() to join the room.
Other methods available:
close()
enableWebcam()
disableWebcam()
enableMic()
disableMic()
muteMic()
unmuteMic()
For any help, reach out to us on Slack. We are available 24*7 at: https://bit.ly/3AsIsT7.
Last updated
Was this helpful?