GithubHelp home page GithubHelp logo

iotserv / flutter_onvif Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mostafadadkhah/flutter_onvif

0.0 1.0 0.0 153 KB

Available in pub.dv

Home Page: https://pub.dev/packages/onvif

License: MIT License

Kotlin 1.02% Ruby 8.54% Swift 1.00% Objective-C 0.09% Dart 89.34%

flutter_onvif's Introduction

ONVIF

This package is designed to find CCTV cameras that support the ONVIF protocol. The method for finding these cameras is the [WS-Discovery](https://en.wikipedia.org/wiki/WS-Discovery) protocol.

How to use

import  'package:onvif/Model/OnvifDevice.dart';
import  'package:onvif/onvif.dart';

Create an ONVIF object and call the get Devices method.

List<OnvifDevice> devices = [];
ONVIF onvif = ONVIF();
onvif.getDevices((device){
devices.add(device);
});

To get the streaming link , all you have to do is call the getCameraUri function and send the username and password values of the camera you specified as an argument.

String uri = await onvif.getCameraUri(onvifDev, username, password);

You can play the resulting url with the vlc player. Note that to play the contents of the camera, you must change the resulting url to the following pattern.

uri.substring(0 , 7)+ "$username:$password@"+ url.substring(7 , url.length)

See the example project for a better understanding.

flutter_onvif's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.