limited_video_recorder 0.0.1 copy "limited_video_recorder: ^0.0.1" to clipboard
limited_video_recorder: ^0.0.1 copied to clipboard

A Flutter plugin for video recording with file size, duration, resolution, and bitrate limits.

limited_video_recorder #

๐ŸŽฅ A Flutter plugin to record videos with customizable limits on file size, duration, resolution, bitrate, and frame rate.

โœ… Android supported
โณ iOS support planned
๐Ÿ”ง Designed for control and simplicity


๐Ÿš€ Features #

  • ๐Ÿ“ฆ Limit maximum file size (e.g., 10 MB)
  • โฑ๏ธ Limit recording duration (e.g., 30 seconds)
  • ๐ŸŽž๏ธ Set video resolution (width ร— height)
  • โšก Control bitrate and frame rate
  • ๐Ÿ”Š Records video with audio
  • ๐Ÿ”„ Clean controller-based API
  • ๐Ÿ“ฑ Preview camera with AndroidView
  • ๐Ÿ“‚ Access to recorded video file path
  • โ„น๏ธ Extract video file metadata (orientation, duration, size)

๐Ÿ“ฆ Installation #

Add to your pubspec.yaml:

dependencies:
  limited_video_recorder:
    git:
      url: https://github.com/sgsm74/limited_video_recorder.git
      ref: main

Then run:

flutter pub get

๐Ÿงช Quick Example #

final recorder = LimitedVideoRecorderController();

final config = RecordingConfig(
  videoWidth: 1280,
  videoHeight: 720,
  maxFileSize: 15 * 1024 * 1024, // 15 MB
  maxDuration: 10 * 1000, // 10 seconds
  videoBitRate: 5_000_000,
  frameRate: 30,
);

await recorder.start(config: config);
// ... wait or perform UI updates ...
final path = await recorder.stop();
print("Video saved at: $path");

Use onRecordingComplete((path) { ... }) to get the final path automatically.


๐Ÿ“ฑ Android Permissions #

Add the following to your AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

If targeting Android 13+, add runtime permission handling.


๐Ÿงฉ Example App UI #

  • Preview camera using AndroidView
  • Start / Stop buttons
  • Show final video using video_player
  • Display file size, duration, orientation after recording

๐Ÿ”ฅ Planned Features #

  • โŒ iOS support
  • โŒ Flash toggle
  • โŒ Pause/Resume recording
  • โŒ Manual focus / exposure controls
  • โŒ Thumbnail generation

๐Ÿง‘โ€๐Ÿ’ป Author #

Developed by Saeed Ghasemi
Feel free to contribute, suggest features, or report bugs!


๐Ÿ“„ License #

MIT License ยฉ 2025 Saeed Qasemi

2
likes
140
points
14
downloads

Publisher

verified publishersaeedqasemi.ir

Weekly Downloads

A Flutter plugin for video recording with file size, duration, resolution, and bitrate limits.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on limited_video_recorder

Packages that implement limited_video_recorder