flutter_screen_recording
화면을 기록하기 위한 새로운 Flutter 플러그인입니다. 이 플러그인은 Android, iOS 및 웹 장치에서 화면을 녹화하는 데 사용할 수 있습니다.
화면을 기록하기 위한 새로운 Flutter 플러그인입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Flutter plugin to record the screen on Android, iOS, and web.
Current platform support in this repository:
minSdkVersion 23iOS 11.0+Import the package:
import 'package:flutter_screen_recording/flutter_screen_recording.dart';
Start screen recording:
final bool started = await FlutterScreenRecording.startRecordScreen(
'my_recording',
titleNotification: 'Screen recording',
messageNotification: 'Recording in progress',
);
Start screen recording with microphone audio:
final bool started = await FlutterScreenRecording.startRecordScreenAndAudio(
'my_recording',
titleNotification: 'Screen recording',
messageNotification: 'Recording in progress',
);
Stop recording and get the output path or file name:
final String path = await FlutterScreenRecording.stopRecordScreen;
The Android implementation uses MediaProjection, MediaRecorder, and a foreground service.
compileSdkVersion 35The example app requests permissions with permission_handler before starting recording.
The iOS implementation uses ReplayKit and requires iOS 11.0+.
Add the usage description for microphone access if you record audio:
<key>NSMicrophoneUsageDescription</key>
<string>Save audio in video</string>
The plugin returns the local output file path. If your app later saves the file to the Photos library, also add the appropriate Photos usage description to your app.
The web implementation uses getDisplayMedia and MediaRecorder.
video/mp4 recording support; WebM is used as a fallback.mp4 or .webm)await when starting and stopping recordings