zego_uikit_prebuilt_video_conference 1.1.3 copy "zego_uikit_prebuilt_video_conference: ^1.1.3" to clipboard
zego_uikit_prebuilt_video_conference: ^1.1.3 copied to clipboard

outdated

PrebuiltVideoConference is a full-featured Video Conference kit that provides a ready-made group voice/video chat, in-room message, dynamic layout, member list, etc.

Quick start #


Integrate the SDK #

Add ZegoUIKitPrebuiltVideoConference as dependencies #

Run the following code in your project root directory:

flutter pub get zego_uikit_prebuilt_video_conference

This will add a line like this to your project's pubspec.yaml file (and Flutter will automatic run an implicit flutter pub get):

dependencies:
  zego_uikit_prebuilt_video_conference: ^1.1.3 # Add this line.

Import the SDK #

Now in your Dart code, import the prebuilt Video Conference Kit SDK.

import 'package:zego_uikit_prebuilt_video_conference/zego_uikit_prebuilt_video_conference';

Using the ZegoUIKitPrebuiltVideoConference in your project #

  • Go to ZEGOCLOUD Admin Console|_blank, get the appID and appSign of your project.
  • Specify the userID and userName for connecting the Video Conference Kit service.
  • Create a conferenceID that represents the video conference you want to start.
  • userID and conferenceID can only contain numbers, letters, and underlines (_).
  • Using the same conferenceID will enter the same video conference.
class VideoConferencePage extends StatelessWidget { final String conferenceID; const VideoConferencePage({ Key? key, required this.conferenceID, }) : super(key: key); @override Widget build(BuildContext context) { return SafeArea(
child: ZegoUIKitPrebuiltVideoConference( appID: /*input your AppID*/, appSign: /*input your AppSign*/, userID: 'user_id', userName: 'user_name', conferenceID: conferenceID, config: ZegoUIKitPrebuiltVideoConferenceConfig(), ),
); } }

Now, you can start a video conference by navigating to this VideoConferencePage .

Configure your project #

  • Android:
  1. If your project is created with an old (not the latest) version of Flutter, you will need to open the your_project/android/app/build.gradle file, and modify the compileSdkVersion to 33.

compileSdkVersion.png

  1. Add app permissions. Open the file your_project/app/src/main/AndroidManifest.xml, and add the following code:
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    
    permission_android.png
  • iOS:

To add permissions, open your_project/ios/Runner/Info.plist, and add the following code to the dict part:

<key>NSCameraUsageDescription</key>
<string>Access permission to camera is required.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Access permission to microphone is required.</string>

permission_ios.png

Run & Test #

Now you have finished all the steps!

You can simply click the Run or Debug to run and test your App on your device.

run_flutter_project.jpg

Custom prebuilt UI

Resources #

23
likes
0
pub points
85%
popularity

Publisher

verified publisherzegocloud.com

PrebuiltVideoConference is a full-featured Video Conference kit that provides a ready-made group voice/video chat, in-room message, dynamic layout, member list, etc.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_screenutil, http, zego_uikit

More

Packages that depend on zego_uikit_prebuilt_video_conference