slowmo_video_recorder 0.0.2
slowmo_video_recorder: ^0.0.2 copied to clipboard
Pure-Dart API for high-frame-rate (slow-motion) video recording on iOS.
πΉ slowmo_video_recorder #
Slow-motion video recording made easy for Flutter apps ( iOS-only ).
The plugin provides a thin wrapper around AVFoundation allowing you to record 120 fps or 240 fps clips at 720p / 1080p with a single method call.
| Platform | iOS |
|---|---|
| Minimum OS | 12.0 |
β¨ Features #
β’ Start / stop high-frame-rate recordings.
β’ Choose frame-rate (fps) and resolution ("720p", "1080p").
β’ Returns the absolute file path (.mov) on completion.
Android or web support is not planned. You can still import the package on these platforms; calls will throw
UnsupportedError.
π Quick start #
Add to pubspec.yaml:
dependencies:
slowmo_video_recorder: ^0.0.1
iOS setup #
- Update your Info.plist:
<key>NSCameraUsageDescription</key>
<string>This app requires camera access to record slow-motion videos.</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app records audio while capturing videos.</string>
- (Xcode 15+) Verify
PrivacyInfo.xcprivacyis bundled (already included in the pod). Edit if you need to declare additional data usage.
Code sample #
final recorder = SlowmoVideoRecorder();
// Start recording at 240 fps / 1080p
await recorder.startRecording(fps: 240, resolution: '1080p');
// β¦wait or display UIβ¦
final path = await recorder.stopRecording();
print('Video saved to: $path');
π§ API reference #
| Method | Description |
|---|---|
startRecording({int fps = 120, String resolution = '720p'}) |
Begins a session. |
stopRecording() β Future<String?> |
Stops and returns file path. |
getPlatformVersion() |
Diagnostic helper. |
π License #
Released under the MIT license. See LICENSE for details.