A new Flutter plugin for record the screen.
This plugin can be used for record the screen on android and iOS devices.
- For start the recording
FlutterScreenRecording.startRecordScreen;
- For stop the recording
FlutterScreenRecording.stopRecordScreen;
We use the library HBRecorder for record the screen in android you need to install the lib in your android app. Adding the library to your project:
Add the following in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Implement library in your app level build.gradle:
dependencies {
implementation 'com.github.HBiSoft:HBRecorder:0.1.4'
}
Add the following permissions in your manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
That's it `HBRecorder` is now ready to be used.
You only need add the permission message on the Info.plist
<key>NSPhotoLibraryUsageDescription</key>
<string>Save video in gallery</string>