onvif-rx-angular
A thin wrapper around onvif-rx to communicate with ONVIF devices and cameras in Angular applications.
Installation
npm i onvif-rx-angular onvif-rx stream
;; @
You will also need to somehow expose a global object for the Buffer polyfill. You can do this by adding
(window as any).global = window;
to your polyfills.ts
file.
Example Usage
;; @ { } device = thisonvif; thisdeviceapiMedia
Important
- Your device must return CORS headers otherwise browsers will reject the responses. You can either run this in Electron or setup a proxy server that appends response headers.