搜索插件、代码仓与 APP 分类

GitHub 代码仓cdavis-code/easy_onvif_workspace

easy_onvif_workspace

该包支持多种ONVIF兼容设备,可将IP摄像头和NVR(网络视频录像机)集成到Dart和Flutter应用中。

easy_onvif_workspace 项目封面
星标
47
复刻
30
最近推送(UTC)
2026年8月1日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

Dart Implementation of ONVIF IP Camera Client

This is the repository for three related Dart packages and two companion npm packages compiled from them via dart2wasm:

Dart packages

easy_onvif - This package works with a variety of ONVIF compatible devices allowing for IP Cameras and NVRs (network video recorders) to be integrated into Dart and Flutter applications. The package includes the ability to control the PTZ (pan-tilt-zoom) movements of a device along with managing presets as well as controlling how video and audio is being streamed from the device. Review the documentation below to get more details on available features.

easy_onvif_cli - A command line interface application (onvif executable) for controlling an Onvif device through terminal commands. This tool allows you to use O/S features like cron to automate Onvif device functionality.

easy_onvif_js - JavaScript / WASM interop layer for easy_onvif. Not published to pub.dev; it is the build harness that emits the two npm artifacts below via dart compile wasm, using dart:js_interop for Node-specific transports (node:dgram for WS-Discovery).

npm packages

npm package Target WS-Discovery Notes
easy-onvif-node Node.js ≥ 20 ✅ via node:dgram CLI / server workloads.
easy-onvif-web Browsers (WasmGC: Chromium 119+, Firefox 120+, Safari 18.2+) ❌ rejects with UnsupportedError SOAP over fetch; a CORS-friendly proxy is required in front of the camera.

Both npm packages expose the same loadEasyOnvif() ESM entry point and ship full TypeScript declarations (index.d.ts).

Build & release

The repo uses Melos for orchestration. Common scripts:

# One-time
dart pub get

# Build both npm artifacts via dart2wasm (node then web)
melos run build:npm

# Or target one side
melos run build:npm:node
melos run build:npm:web

# Smoke-test the compiled Node bundle (no device required)
melos run smoke:npm:node

# Static analysis across all Dart packages
melos run analyze

The build scripts live at packages/easy_onvif_js/tool/ and stage the compiled .wasm + .mjs loader into npm/easy-onvif-node/dist/ and npm/easy-onvif-web/dist/, ready for npm publish.

cdavis-code GitHub avatar
GitHub 作者

cdavis-code ↗

语言DartJavaScriptC++CMakeShellRubyCHTMLSwiftKotlinObjective-C

分类

使用的依赖

依赖清单 2 项

  • melos开发依赖^7.5.1
  • publish_tools开发依赖^1.0.0+11

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗