enx_uikit_flutter 1.0.7 icon indicating copy to clipboard operation
enx_uikit_flutter: ^1.0.7 copied to clipboard

EnableX Flutter Uikit allows developers to implement real-time communication channels such as audio, video, and text chat in their applications on iOS and Android Platforms.

EnableX_UiKit_Flutter #

EnableX introduces Video UI Kit to help integrating EnableX Video quickly into your App. EnableX Video UIKit is a wonderful Framework for Video Application Development for Mobile Platforms (Phone, Tab etc.) with many customization options to meet your requirement.

You code less, only 3 lines of Code does all the magic of getting a video communication done. Thus, using UIKit helps you get a seamless Video UI with all Device Support in almost 95% reduced effort and time.

Usage #

To use this plugin, add enx_uikit_flutter as a dependency in your pubspec.yaml file.

Getting Started #

..
class VideoCall extends StatelessWidget{
  String token;
  VideoCall(this.token, {Key? key}) : super(key: key);


@override
Widget build(BuildContext context) {
// TODO: implement build
var setting = EnxSetting.instance;
setting.createBottomOption(BottomOption.audio);
setting.createBottomOption(BottomOption.video);
setting.createBottomOption(BottomOption.groupChat);
setting.createBottomOption(BottomOption.disconnect);
setting.createBottomOption(BottomOption.cameraSwitch);
setting.createTopOption(TopOption.userList);
setting.createTopOption(TopOption.requestFloor);
setting.createTopOption(TopOption.menu);

return Scaffold(
      body: SafeArea(child: Stack(children: [
        EnxVideoView(token: token, connectError: (Map<dynamic, dynamic> map) {
          print('connectError' + jsonEncode(map));
        },
          disconnect: (Map<dynamic, dynamic> map) {
print('connectError' + jsonEncode(map));
          },   ),
],),),
    );
}

}
..

Device Permissions #

You require a physical Device to run the application as a simulator/emulator does not support playing video or publishing a local Stream.

EnableX Video SDK requires camera and microphone permission to start video call. Learn how to add Device Permissions in Android and iOS platforms as shown below:

Android #

Open the AndroidManifest.xml file and add the required device permissions.

..

<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" />
..

iOS #

Open the info.plist file 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.

Black Screen Issue in iOS #

EnableX Video SDK uses PlatformView so you need to set io.flutter.embedded_views_preview to YES in your info.plist to avoid the black screen issue.

1
likes
100
pub points
45%
popularity

Publisher

unverified uploader

EnableX Flutter Uikit allows developers to implement real-time communication channels such as audio, video, and text chat in their applications on iOS and Android Platforms.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

animated_widgets, enx_flutter_plugin, flutter, flutter_foreground_task, flutter_screenutil, fluttertoast, get, intl, page_transition, permission_handler

More

Packages that depend on enx_uikit_flutter