flutter_screen_recorder_kl 0.1.1
flutter_screen_recorder_kl: ^0.1.1 copied to clipboard
Live-mux screen recorder plugin for Android with internal audio + mic mix and fast stop.
flutter_screen_recorder_kl #
Open source Flutter plugin for Android screen recording with fast stop (live mux), internal audio + mic mixing (Android 10+), and mic fallback.
Features #
- Live-mux recording to MP4 (no heavy post-stop merge by default).
- Android 10+ internal playback capture + microphone mix.
- Automatic fallback to mic-only if internal capture is blocked/unavailable.
- Android 14+ foreground service support for media projection.
Platform Support #
- Android: supported
- iOS/web/desktop: not implemented in this package
Installation #
dependencies:
flutter_screen_recorder_kl: ^0.1.0
Android Setup #
Add these permissions to your app AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
The plugin ships a foreground service declaration via plugin manifest merge.
Usage #
import 'package:flutter_screen_recorder_kl/flutter_screen_recorder_kl.dart';
final recorder = FlutterScreenRecorderKl.instance;
await recorder.startRecording();
final path = await recorder.stopRecording();
Notes #
- Internal playback capture depends on Android policy and target app behavior.
- Some apps/games can block internal capture. The plugin then falls back to mic-only mode.
- This package does not compress by default. You can run your own compression pipeline after stop if needed.
Example #
See example/lib/main.dart.
License #
MIT