Skip to content
pubscout

flutter_background_video_recorder

2.1.0, released 3 weeks ago by an unverified publisher

Record video and audio on Android from a foreground service, with raw frame and audio streams.

$ flutter pub add flutter_background_video_recorder
Source repository

What it does

Records video or audio on Android inside a foreground service, allowing operations to continue in the background or when the screen is locked. It provides live preview widgets, camera selection, zoom controls, and raw frame or microphone audio data streams via native memory.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need background or locked-screen video/audio recording on Android.
  • You need raw camera frames or microphone streams for custom processing.
  • You need camera switching and zoom capabilities during recordings.

Skip it when

  • You are targeting iOS or platforms other than Android.
  • You only need simple in-app video playback.

Strengths

  • Continues recording in the background, closed app, or locked screen via a foreground service.
  • Provides raw frames via shared native memory (dart:ffi) to avoid serialization overhead.
  • Supports camera selection, zoom, and live previews.

Weaknesses

  • Android only; not available on iOS.
  • Requires native build tooling (NDK and CMake) for raw frame streams.
  • Hot restarts can lock camera/microphone resources until the app is fully restarted.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires Android minSdk 31 or higher, Flutter 3.29+, and the Android NDK and CMake installed. Handles most permissions automatically but requires manual manifest declarations for optional location features.

import 'package:flutter_background_video_recorder/flutter_background_video_recorder.dart';

final recorder = FlutterBackgroundVideoRecorder();
final result = await recorder.startVideoRecording(
  folderName: 'My Videos',
  cameraFacing: CameraFacing.rearCamera,
  notificationTitle: 'Recording video',
  notificationText: 'Tap to return to the app',
);
final media = await recorder.stopRecording();

Alternatives

Packages that do the same job and could replace flutter_background_video_recorder.

Works with

Packages commonly used together with flutter_background_video_recorder: ones it builds on, ones built on it, and its own family.