RingCameraRecorder class
Records video from a Ring camera to a file
This class manages the WebRTC connection and MediaRecorder to capture video from a Ring camera and save it to a local file.
Uses flutter_webrtc's MediaRecorder for native recording without FFmpeg.
Example usage:
final recorder = RingCameraRecorder(
camera: myCamera,
outputPath: '/path/to/output.mp4',
duration: 10, // seconds
);
await recorder.startRecording();
Constructors
- RingCameraRecorder({required RingCamera camera, required String outputPath, required int durationSeconds, void onProgress(String message)?, void onError(Object error)?})
Properties
- camera → RingCamera
-
final
- durationSeconds → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onError → void Function(Object error)?
-
final
- onProgress → void Function(String message)?
-
final
- outputPath → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startRecording(
) → Future< void> - Start recording video from the camera
-
stopRecording(
) → Future< void> - Stop recording and cleanup resources
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited