ZEGOCLOUD / zego_uikit_prebuilt_call_example_flutter

Call Kit is a prebuilt feature-rich call component, which enables you to build one-on-one and group voice/video calls into your app with only a few lines of code.
https://www.zegocloud.com
50 stars 24 forks source link

How to join an ongoing video call? #2

Closed AliEmx closed 1 year ago

AliEmx commented 1 year ago

How to join an ongoing video call?

yoer commented 1 year ago

you can join by same call id

https://github.com/ZEGOCLOUD/zego_uikit_prebuilt_call_example_flutter/tree/master/group_call

AliEmx commented 1 year ago

I am using ZegoSendCallInvitationButton for a group video call with multiple invitees and there is no option to add a call id.

yoer commented 1 year ago

ZegoSendCallInvitationButton is use to invite someone, call id will generate inside,


class ZegoSendCallInvitationButton extends StatefulWidget {
  const ZegoSendCallInvitationButton({
    Key? key,
    required this.invitees,
    required this.isVideoCall,
  }) : super(key: key);

  /// here is a invite array, if you want to invite more than one
  final List<ZegoUIKitUser> invitees;
  final bool isVideoCall;

ZegoUIKitPrebuiltCall can custom call id by yourself, just like this


class ZegoUIKitPrebuiltCall extends StatefulWidget {
  const ZegoUIKitPrebuiltCall({
    Key? key,
    required this.callID,
  }) : super(key: key);

  /// You can customize the callID arbitrarily,
  /// just need to know: users who use the same callID can talk with each other.
  final String callID;