Git Product home page Git Product logo

onvif-interface's Introduction

This basic ONVIF test client provides an interface to connect to ONVIF compliant devices to retrieve device details, test PTZ control, and subscribe to device events.

Features

  • Connect by IP/Port with or without authentication
  • Retrieve device info (Model, Firmware, Serial #, Hardware ID, and Time)
  • Retrieve supported services and their capabilities (analytics, events, extensions, imaging, media, PTZ, etc.)
  • Retrieve media information (URIs for camera streams)
  • Enable PTZ for supported devices
  • Subscribe to device events

Note: This application was tested with Bosch and Samsung cameras primarily. One Axis camera was also used but it did not support all features. Also, there are nuances in how various vendors support the ONVIF standard so there are likely aspects of the application that will not work with some devices without further development.

onvif-interface's People

Contributors

thephez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

onvif-interface's Issues

'Digest' authentication problem

First of all,
I sincerely thank you for taking the time to do the coding for me.
However, I have a problem and I would like to ask for your help.

When I click the "subscribe" button,
I met error at the following code

string[] result = eptc.GetEventProperties(out fixedTopicSet, out tst, out topicExpDialect, out msgContentFilter, out producerProperties, out msgContentSchema, out any);

error is as followings.

System.ServiceModel.Security.MessageSecurityException: 'HTTP request is not authenticated with client authentication scheme 'Digest'. The authentication headers received from the server are 'Digest realm="iPolis", qop="auth", nonce="6540f315ca6b2e5fd9fd", opaque="60bf14eb"'.

Could you please help me more?

could you explain how to get OnvifEvents

I don’t know what to say for your contribution!
i learn about the onvif interface, and maked onvif PTZ function.

but i encounter the new big deal.

        public void pull(string ip, int port)
        {
             ....
             ....

            // 2. CreatePullPointSubscription
            FilterType filter = new FilterType();
            DateTime currentTime;
            XmlElement[] xml = null;
            DateTime? termTime;
            List<MessageHeader> lstHeaders = new List<MessageHeader>() { };

            EndpointReferenceType ert = eptc.CreatePullPointSubscription(
                filter,
                "PT15S",
                new CreatePullPointSubscriptionSubscriptionPolicy(),
                ref xml,
                out currentTime,
                out termTime
                );
            listBox1.Items.Add(ert.Address.Value);

            //PROBLEM HERE "ReferenceParameters" IS NULL
            if ((ert.ReferenceParameters != null) && (ert.ReferenceParameters.Any != null))
            {
                foreach (System.Xml.XmlElement oXml in ert.ReferenceParameters.Any)
                {
                    string strName = oXml.LocalName;
                    string strNS = oXml.NamespaceURI;
                    string strValue = oXml.InnerXml;

                    lstHeaders.Add(MessageHeader.CreateHeader(strName, strNS, strValue, true));
                }
            }

i always get that "ReferenceParameters" is null.

image

could you explain what happen in this code?


OS: window10
develop framework: dotnet framwork 4.8
IDE: visual studio 2022

Thanks for reading

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.