Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

agora ui kit for flutter

instantly integrate agora video calling or video streaming into your flutter application.

flutter plugin to simply integrate agora video calling or live video streaming to your app with just a few lines of code.

getting started

agora flutter uikit layout sample

roadmap

  • add usernames
  • more event callbacks
  • screen sharing
  • layout for voice calls
  • re-orderable list view (floating layout)
  • cloud recording
  • promoting an audience member to a broadcaster role.
  • muting/unmuting a remote member
  • flutter web support as a pre-release
  • flutter desktop support as a pre-release

requirements

installation

in your flutter application, add the agora_uikit as a dependency inside your pubspec.yaml file.

in your android level build.gradle add this at the end of the repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

device permission

agora video sdk requires camera and microphone permission to start video call.

android

open the androidmanifest.xml file and add the required device permissions to the file.

<manifest>
...
<uses-permission  android:name="android.permission.read_phone_state"/>
<uses-permission  android:name="android.permission.internet"  />
<uses-permission  android:name="android.permission.record_audio"  />
<uses-permission  android:name="android.permission.camera"  />
<uses-permission  android:name="android.permission.modify_audio_settings"  />
<uses-permission  android:name="android.permission.access_network_state"  />
<!-- the agora sdk requires bluetooth permissions in case users are using bluetooth devices.-->
<uses-permission  android:name="android.permission.bluetooth"  />
...
</manifest>

ios

open info.plist and add:

  • privacy - microphone usage description, and add a note in the value column.
  • privacy - camera usage description, and add a note in the value column.

your application can still run the voice call when it is switched to the background if the background mode is enabled. select the app target in xcode, click the capabilities tab, enable background modes, and check audio, airplay, and picture in picture.

usage

final agoraclient client = agoraclient(
  agoraconnectiondata: agoraconnectiondata(
    appid: "<--add your app id here-->",
    channelname: "test",
  ),
  enabledpermission: [
    permission.camera,
    permission.microphone,
  ],
);

@override
widget build(buildcontext context) {
  return materialapp(
    home: scaffold(
      body: safearea(
        child: stack(
          children: [
            agoravideoviewer(client: client), 
            agoravideobuttons(client: client),
          ],
        ),
      ),
    ),
  );
}

uikits

the plan is to grow this library and have similar offerings across all supported platforms. there are already similar libraries for android, react native, and ios, so be sure to check them out.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.