Methods
Audio

Audio

NameTypeDescription
fetchAudioStream(deviceId?: string)FunctionEnables audio stream from user’s device mic(lobby)
stopAudioStream()FunctionDisables audio stream from user’s device mic(lobby)
produceAudio(micStream: MediaStream, peerIds?: string[])FunctionStarts sharing user’s audio stream with other peers in the room
stopProducingAudio()FunctionStops sharing user’s audio stream with other peers in the room
enumerateDevices()FunctionReturns the list of audio devices
createSingleConsumer(peerId: string, "mic")FunctionStarts consuming audio stream for given peerId
closeSingleConsumer(peerId: string, "mic")FunctionStops consuming audio stream for given peerId

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.fetchAudioStream();
          },
          child: const Text("Fetch Audio Stream"),
        )
      ]
    );
  }
}
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
support
company
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.