

Void main( ) => runApp( const MaterialApp( Next, we would create a main method like 👇 And I name them RtcLocalView and RtcRemoteView respectively. Import 'package:permission_handler/permission_handler.dart' Ĭonst token = "00676ed95f80d184068bb99f765bf181af9IAANaYw7ifjwHn5XAr1ssXmh6zDp3yeGvJRjMatLbnvVa1pH9K4AAAAAEADKF8m8qyZpYgEAAQCrJmli" Ĭonst appId = "76ed95f80d184068bb99f765bf181af9" įrom the agora_rtc_engine we import rtc_local_view and rtc_remote_view to serveįor the views of the caller and the receiver, rtc_local_view for the caller and rtc_remote_view for the receiver. Import 'package:agora_rtc_engine/rtc_remote_view.dart' as RtcRemoteView Import 'package:agora_rtc_engine/rtc_local_view.dart' as RtcLocalView Import 'package:agora_rtc_engine/rtc_engine.dart' 📌 Do not attempt to use my token, and appId it won't work. Remember the token, channel name and appId from the Agora RTC platform right? we would create string variables for these data as well Let's import the following into our main.dart file. Now we are done with setting up our Agora RTC for this project. After clicking on Generate, you should see 👇Ĭopy the token as we would need that token later as well. I would name my channel secondchannel then click on Generate, do not forget your channel name as we would need this later.
#AGORA VIDEO CALL APP ANDROID#
On the top right corner, select Video-Call and Android in their appropriate drop-downs then click on Generate temp RTC token, this is to allow us to generate a temporary RTC(real-time communication) token just for testing purposes (remember we are not building a production app 🙃).Ĭlicking on Generate temp RTC token should show a pop up like this 👇 Remember our project name? you should see it there, now click on config, and it should take you 👇 Then click on more in the projects section, it should take you 👇 What you see now is more like the main console that shows an overview of what agora is capable of doing, now you see projects right? copy your app id and paste maybe into a notepad because we would need it later. You should be seeing this next, just click on the X to skip the remaining steps. 📌NB: whatever use case you choose, it really won't matter as all use-cases allow for video streaming. For the use case, I chose social/Live stream.
#AGORA VIDEO CALL APP FREE#
Next is to visit to create an agora account, it's free 😏.Īfter signing up and all you should see this, now let's create a project you could choose whatever name since it's not a production app, so I would call my projectīasic app.
#AGORA VIDEO CALL APP INSTALL#
You can visit pub.dev to search for these packages and install their latest versions.
