easy_agora_uikit 1.3.0 copy "easy_agora_uikit: ^1.3.0" to clipboard
easy_agora_uikit: ^1.3.0 copied to clipboard

agora made simple

easy_agora_uikit #

The package provides an easy way to work with agora.

Installation #

To use this package : add the dependency to your pubspec.yaml file

   dependencies:
     flutter:
       sdk: flutter
     easy_agora_uikit:

Basic Usage #

Import it to your project file

  import 'package:easy_agora_uikit/easy_agora_uikit';

Get Agora running with just a single line of code!!!

Just use it like any other widget. Simply pass in 3 required paramters and you are good to go.

  VideoCall(
    serverLink: "https://example.com/access_token?channelName", 
    channelName: "test123", 
    appID: "0006....", 
   ),

Note: -> The server url must end with /access_token?channelName and must return following key-value pairs {"token": "67000abvlop...."} create tokenServer from here

-> channelName can be any string

-> You can obtain appID from here

The package also supports rear camera default, to enable just rename the widget from VideoCall to VideoCallRear

  VideoCallRear(
    serverLink: "https://example.com/access_token?channelName", 
    channelName: "test123", 
    appID: "0006....", 
   ),

You can also pass in floatingLayoutWidth and floatingLayoutHeight

   VideoCall(
    serverLink: "https://example.com/access_token?channelName", 
    channelName: "test123", 
    appID: "0006....", 
    floatingLayoutWidth: 120.8, //optional (values in double)
    floatingLayoutHeight: 112.5, //optional (values in double)
   ),
3
likes
90
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

agora made simple

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

agora_uikit, flutter, http

More

Packages that depend on easy_agora_uikit