easy_onvif
3.2.0, released 4 weeks ago by cdavis.ca
Dart implementation of ONVIF IP camera and NVR client for device control and streaming.
What it does
Allows Dart and Flutter applications to integrate with a variety of ONVIF compatible devices, such as IP cameras and network video recorders (NVRs). It supports device management, PTZ (pan-tilt-zoom) control, preset management, imaging, and streaming controls.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to connect and control ONVIF-compliant IP cameras or NVRs in Flutter or Dart.
- You need to manage pan-tilt-zoom (PTZ) camera movements and presets programmatically.
- You want to retrieve device information, stream URIs, and network settings from security cameras.
Skip it when
- You are streaming standard media files or non-ONVIF video sources.
- You only need local device camera access rather than remote network IP cameras.
Strengths
- Comprehensive coverage of ONVIF operations including Device Management, Media, PTZ, Imaging, and Recording.
- Provides low-level request fallbacks for custom ONVIF operations.
- Web platform compatibility.
Weaknesses
- Requires proper authentication and network privileges (such as Administrator access) on the ONVIF device to avoid unexpected errors.
- Relies on specific device implementations which can occasionally introduce ONVIF protocol inconsistencies.
Setup
- Kind
- FFI (native library)
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 15
Add the dependency to pubspec.yaml and connect to the ONVIF device using host, username, and password credentials.
import 'package:easy_onvif/onvif.dart';
final onvif = await Onvif.connect(
host: '192.168.1.100',
username: 'admin',
password: 'password');
var deviceInfo = await onvif.deviceManagement.getDeviceInformation();
print(deviceInfo.model);Alternatives
Packages that do the same job and could replace easy_onvif.
- camera_android
Android implementation of the camera plugin using the Camera2 library.
85Compare - camera_avfoundation
iOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
84Compare - camera_android_camerax
Android camera implementation using CameraX library
89Compare - camera
Flutter plugin to preview, capture photos/video and stream camera images.
95Compare
Works with
Packages commonly used together with easy_onvif: ones it builds on, ones built on it, and its own family.
- yamleasy_onvif depends on itA Dart library for parsing YAML documents into Dart data structures.
- cryptoeasy_onvif depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- uuideasy_onvif depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- xmleasy_onvif depends on itFull-featured XML and XPath library for DOM parsing, SAX streaming, and fluent building.
- ffieasy_onvif depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- json_annotationeasy_onvif depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- intleasy_onvif depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- http_parsereasy_onvif depends on itA platform-independent package for parsing and serializing HTTP formats.