device_screen_recorder
A Flutter plugin for record the screen based on HBRecorder. This plug-in requires Android SDK 21+
Getting Started
This plugin can be used for record the screen on Android and iOS devices.
Start the recording:
bool started = DeviceScreenRecorder.startRecordScreen(name: 'example');
Or
bool started = DeviceScreenRecorder.startRecordScreen();
Stop the recording:
String path = DeviceScreenRecorder.stopRecordScreen();
Android
Require 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" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Add the following in your root build.gradle at the end of repositories:
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Implement library in your app level build.gradle:
dependencies {
implementation 'com.github.HBiSoft:HBRecorder:2.0.0'
}
iOS
In progress