Skip to content
pubscout

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.

WASM-ready
$ flutter pub add easy_onvif
Source repository

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.

Works with

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