Note: This project is meant for reference purposes and development environments. In your app, create global variables named appId and token and set them to the values retrieved from Agora. There you will find your appId, and you can generate a temporary token. The first step is to create an Agora project. For this project, we will use a temporary token. The last preparation step will be to get the appId and the token so we can use Agora securely. The top of the file should look like this: RTC Remote View: Includes a view of the other user that joins the camera RTC Local View: Includes a view of the current users camera RTC Engine: Includes most of the real time communication functions The other imports are from Agora and the permissions handler. Then from Dart, we will need to use the async library since a lot of the methods we will be using rely on Futures (we will call the Agora SDK and will need to wait for a response). From Flutter, we will use the material library that is provided by Flutter for our UI. With these packages added, your dependencies should look like this:Īfter you have Agora imported into your project, you can include all the imports that you will need to use inside the actual project. Permission_handler: Assists with checking whether permissions are granted for using the camera and the microphone for this app but can be used for any other permissions on the device
Once you have the project ready, you will need to add the necessary packages into the pubspec.yaml file.Īgora_rtc_engine: A wrapper for the Agora SDK that is made for Flutter The next step for any Flutter project is running An Agora Developer Account - Sign Up Hereįor this project, we will be working with only the main file.Agora can do much more, but many of us learn best by something very basic and building up from that.
Flutter agora video call github how to#
In this article, we will cover how to create a simple video call application with in-call statistics. Using the Agora Flutter SDK, which can be installed with a plugin from pub.dev, you can connect people via voice, video, and other mediums. Adding video call capabilities to your current app will allow users to stay on your app longer, help connect the users to connect to one another, and increase the value that your app provides.
Clearly, remote communication will continue to be a big part of our future. When the pandemic hit in 2020, remote communication became an even more vital part of the way we communicate.