Methods
Video

Video

NameTypeDescription
fetchVideoStream(deviceId?: string)FunctionEnables video stream from user’s device cam(lobby)
stopVideoStream()FunctionDisables video stream from user’s device cam(lobby)
produceVideo(camStream: MediaStream, peerIds?: string[])FunctionStarts sharing user’s webcam stream with other peers in the room
stopProducingVideo()FunctionStops sharing user’s webcam stream with other peers in the room
enumerateDevices()FunctionReturns the list of video devices
createSingleConsumer(peerId: string, "cam")FunctionStarts consuming video stream for given peerId
closeSingleConsumer(peerId: string, "cam")FunctionStops consuming video 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.fetchVideoStream();
          },
          child: const Text("Fetch Video Stream"),
        )
      ]
    );
  }
}
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.